!function () {
  "use strict";
  class e {
    constructor() { }
    static init () {
      Laya.ClassUtils.regClass
    }
  }
  e.width = 720,
    e.height = 1600,
    e.scaleMode = "fixedwidth",
    e.screenMode = "vertical",
    e.alignV = "top",
    e.alignH = "center",
    e.startScene = "LayaPlane/MainPageDialog.scene",
    e.sceneRoot = "",
    e.debug = !1,
    e.stat = !1,
    e.physicsDebug = !1,
    e.exportSceneToJson = !1,
    e.init();
  class t {
    constructor() {
      this.enemyNum = 0,
        this.goldNow = 0,
        this.pointNow = 80,
        this.defense = 0,
        this.delayNum = 10,
        this.planeMove = [],
        this.LevelData = void 0,
        this.LevelData2 = void 0,
        this.FanData = void 0,
        this.PanData = void 0,
        this.httpJson = "https://minigamerx.jiegames.com/doodle_oppo"
    }
    UnitData () { }
    init () {
      this.initLevelData(),
        this.initFanData(),
        this.initPanData()
    }
    loadJson (e) {
      return Laya.Loader.getRes("res/config/" + e + ".json")
    }
    initLevelData () {
      var e = this.loadJson("level");
      this.LevelData = [],
        this.LevelData2 = [];
      for (let t = 0; t < e.length; t++) {
        const a = e[t];
        a.id > 999 ? this.LevelData2.push(a) : this.LevelData.push(a)
      }
      this.LevelData = e
    }
    initFanData () {
      var e = this.loadJson("fan");
      this.FanData = e
    }
    initPanData () {
      var e = this.loadJson("pan");
      this.PanData = e
    }
    disposeBullet (e) { }
  }
  t.Instance = new t;
  class a {
    constructor() {
      this.enemyNum = 12,
        this.TZNum = 12,
        this.colorNum = 12,
        this.TZNow = !1,
        this.monReady = !1,
        this.doubleMode = !1,
        this.doubleColor = [0, 0],
        this.sceneList = [],
        this.posNow = [0, 0],
        this.itemTime = !1,
        this.leftNow = !1,
        this.rightNow = !1,
        this.miniCar = void 0,
        this.slowTime = !1,
        this.ADOpen = !1,
        this.judgeNum = 0,
        this.nmNow = 0,
        this.shootNum = 80,
        this.BulletMove = .15,
        this.token = "",
        this.delayNum = 10,
        this.goldNow = 0,
        this.goldAdd = 0,
        this.planeHealth = 10,
        this.MaxScore = 0,
        this.ScoreNow = 0,
        this.planeMove = [0, 0],
        this.paintpos0 = [],
        this.paintparam0 = [],
        this.paintparam1 = [],
        this.paintpos1 = [],
        this.cakeNow = 1,
        this.ballNow = 1,
        this.giftStage = !1,
        this.shootNow = !1,
        this.gameOver = !1,
        this.soundHall = !1,
        this.soundOpen = !0,
        this.MusicOpen = !0,
        this.shadowOpen = !0,
        this.shockOpen = !0,
        this.loadOnce = !0,
        this.nmState = !1,
        this.nmShoot = !1,
        this.dayGoldIndex = 1,
        this.verNum = "v1.2",
        this.carNumberNow = 0,
        this.carNumberNow2 = 0,
        this.gamePause = !1,
        this.gameInit = !0,
        this.relife = !1,
        this.playerMove = !1,
        this.timeNum = 0,
        this.carNum = 0,
        this.roleStatNow1 = "100000000",
        this.roleStatNow2 = "100000000",
        this.TZStatNow = "000000000000000000000000000000",
        this.TZDay = 4,
        this.goldList0 = [500, 500, 750, 750, 1e3, 1250, 1250, 1500, 1500],
        this.goldList1 = [250, 500, 500, 750, 1250, 1750, 1750, 2500, 2500],
        this.bigBanner = 0
    }
    GameData () { }
    init () {
      var e = localStorage.getItem("musicTY");
      null == e ? (localStorage.setItem("musicTY", "1"),
        this.MusicOpen = !0) : this.MusicOpen = "1" == e;
      var t = localStorage.getItem("shockTY");
      null == t ? (localStorage.setItem("shockTY", "1"),
        this.shockOpen = !0) : this.shockOpen = "1" == t;
      var a = localStorage.getItem("roleStatNow1");
      null == a ? localStorage.setItem("roleStatNow1", "100000000") : this.roleStatNow1 = a;
      var i = localStorage.getItem("TZStatNow");
      null == i ? localStorage.setItem("TZStatNow", "000000000000000000000000000000") : this.TZStatNow = i;
      var o = localStorage.getItem("roleStatNow2");
      null == o ? localStorage.setItem("roleStatNow2", "100000000") : this.roleStatNow2 = o;
      var n = localStorage.getItem("carNowTY");
      null == n ? localStorage.setItem("carNowTY", "0") : this.carNumberNow = Number(n);
      var s = localStorage.getItem("carNowTY2");
      null == s ? localStorage.setItem("carNowTY2", "0") : this.carNumberNow2 = Number(s);
      var r = localStorage.getItem("dayGoldIndex");
      null == r ? localStorage.setItem("dayGoldIndex", "1") : (this.dayGoldIndex = Number(r),
        localStorage.setItem("dayGoldIndex", this.dayGoldIndex.toString())),
        console.log("领取次数" + this.dayGoldIndex);
      var l = localStorage.getItem("loginTime");
      null == l ? localStorage.setItem("loginTime", Date.now().toString()) : this.isSameDay(Date.now(), Number(l)) || (this.dayGoldIndex = 1,
        localStorage.setItem("dayGoldIndex", "1"),
        localStorage.setItem("loginTime", Date.now().toString())),
        console.log(this.isSameDay(Date.now(), Number(l)));
      var h = localStorage.getItem("goldNowTY");
      null == h ? localStorage.setItem("goldNowTY", "0") : this.goldNow = Number(h);
      var g = localStorage.getItem("MaxScoreTY");
      null == g ? localStorage.setItem("MaxScoreTY", "0") : this.MaxScore = Number(g);
      var d = localStorage.getItem("stageNowTY");
      null == d ? localStorage.setItem("stageNowTY", "1") : this.enemyNum = Number(d)
    }
    enemyOver () {
      this.enemyNum = Number(this.enemyNum) + 1
    }
    setStage (e) {
      this.enemyNum = e
    }
    playMusic (e, t) {
      this.MusicOpen && Laya.SoundManager.playMusic(e, t)
    }
    playSound (e, t) {
      this.MusicOpen && Laya.SoundManager.playSound(e, t)
    }
    stopAll () {
      localStorage.setItem("musicTY", "0")
    }
    startAll () {
      localStorage.setItem("musicTY", "1")
    }
    stopMusic () {
      Laya.SoundManager.stopAll(),
        localStorage.setItem("musicTY", "0")
    }
    startMusic () {
      window.gameData.playMusic("res/sound/Audio_BGM.mp3", 0),
        localStorage.setItem("musicTY", "1")
    }
    saveDayGold () {
      localStorage.setItem("dayGoldIndex", this.dayGoldIndex.toString())
    }
    disposeBullet (e) { }
    dealLogin (e) {
      window.HttpManager.token = e.token,
        window.HttpManager.userId = e.userId,
        this.TZDay = e.logincount - 1,
        this.bigBanner = e.bigBanner
    }
    dealLevel (e, t) {
      var a = JSON.parse(e);
      for (var i in a)
        if (a.hasOwnProperty(i)) {
          var o = Number(a[i]);
          t[Number(i)] = o
        }
    }
    isSameDay (e, t) {
      let a = new Date(e)
        , i = new Date(t);
      return a.setHours(0, 0, 0, 0) == i.setHours(0, 0, 0, 0)
    }
  }
  a.Instance = new a;
  class i extends Laya.Sprite {
    constructor(e) {
      super(),
        this.preName = "monster",
        this.moveCake1 = [],
        this.Round0 = void 0,
        this.Round1 = void 0,
        this.moveCake2 = [],
        this.goldCake2 = [],
        this.paintparam0 = [],
        this.paintparam1 = [],
        this.pos0 = [],
        this.pos1 = [],
        this.standardCake = void 0,
        this.colorFulCake = void 0,
        this.colorFulCake2 = void 0,
        this.carSpeed = 1.5,
        this.carSpeed2 = 2,
        this.carRotate = -90,
        this.posX = 0,
        this.posZ = 0,
        this.playerCheckStart = !1,
        this.successNum = 0,
        this.RotateNum0 = 0,
        this.RotateSpeed0 = 0,
        this.RotateSpeed1 = 0,
        this.RotateState0 = 0,
        this.RotateStop0 = !1,
        this.RotateStop1 = !1,
        this.nmNow = !1,
        this.nmNuw = 0,
        this.AllMoveNum = 0,
        this.RotateNum1 = 0,
        this.RotateState1 = 0,
        this.moveNum = 4,
        this.standardInit = 0,
        this.yList0 = [],
        this.yList1 = [],
        this.init(e)
    }
    init (e) {
      window.gameData.monReady = !1;
      var t = e.ind;
      if (0 != e.ind && (t = 1),
        this.standardCake = window.EffectManager.CakeList[0].clone(),
        1 == window.gameData.giftStage) {
        this.colorFulCake = window.EffectManager.CakeList[window.gameData.carNumberNow + 18].clone();
        for (let e = 0; e < 36; e++) {
          var a = window.EffectManager.Gold.clone();
          this.goldCake2.push(a)
        }
        window.gameData.doubleMode = !1,
          window.gameData.colorNum = window.gameData.carNumberNow + 18
      } else {
        if (0 == Math.floor(2 * Math.random())) {
          var i = Math.ceil(8 * Math.random())
            , o = Math.ceil(8 * Math.random());
          0 == i && (i = 1),
            0 == o && (o = 1),
            i == o && (i = 1 == i ? 2 : o - 1),
            window.gameData.doubleMode = !0,
            this.colorFulCake = window.EffectManager.CakeList[i].clone(),
            this.colorFulCake2 = window.EffectManager.CakeList[o].clone(),
            window.gameData.doubleColor = [i - 1, o - 1]
        } else {
          var n = Math.ceil(9 * Math.random()) + 8;
          8 == n && (n = 9),
            window.gameData.doubleMode = !1,
            this.colorFulCake = window.EffectManager.CakeList[n].clone(),
            window.gameData.colorNum = n
        }
      }
      this.standardCake.transform.rotate(new Laya.Vector3(0, 0, 270), !0, !1),
        this.colorFulCake.transform.rotate(new Laya.Vector3(0, 0, 270), !0, !1),
        this.colorFulCake2 && window.gameData.doubleMode && this.colorFulCake2.transform.rotate(new Laya.Vector3(0, 0, 280), !0, !1);
      var s = window.EffectManager.AxisBlack.clone();
      s.transform.position = new Laya.Vector3(0, 0, -20 * t),
        this.Round0 = s;
      var r = window.EffectManager.AxisGray.clone();
      r.transform.position = new Laya.Vector3(0, 0, -20 * t),
        this.Round1 = r,
        this.standardCake.transform.position = new Laya.Vector3(0, 0, -20 * t),
        this.colorFulCake.transform.position = new Laya.Vector3(0, 0, -20 * t),
        window.gameData.doubleMode && (this.colorFulCake2.transform.position = new Laya.Vector3(0, 0, -20 * t)),
        window.NodeManage.scenes2.addChild(this.standardCake),
        window.NodeManage.scenes2.addChild(this.colorFulCake),
        window.gameData.doubleMode && window.NodeManage.scenes2.addChild(this.colorFulCake2);
      for (let e = 0; e < this.standardCake.numChildren; e++) {
        const t = this.standardCake.getChildAt(e);
        t.active = !1,
          t.transform.rotate(new Laya.Vector3(0, 0, 10 * e), !0, !1)
      }
      if (window.gameData.doubleMode) {
        for (let e = 0; e < this.colorFulCake.numChildren; e++) {
          const t = this.colorFulCake.getChildAt(e);
          t.active = !1,
            e < 18 && t.transform.rotate(new Laya.Vector3(0, 0, 20 * e), !0, !1)
        }
        for (let e = 0; e < this.colorFulCake2.numChildren; e++) {
          const t = this.colorFulCake2.getChildAt(e);
          t.active = !1,
            e < 18 && t.transform.rotate(new Laya.Vector3(0, 0, 20 * e), !0, !1)
        }
      } else
        for (let e = 0; e < this.colorFulCake.numChildren; e++) {
          const t = this.colorFulCake.getChildAt(e);
          t.active = !1,
            t.transform.rotate(new Laya.Vector3(0, 0, 10 * e), !0, !1)
        }
      if (this.pos0 = window.gameData.paintpos0,
        0 == window.gameData.giftStage) {
        for (let e = 0; e < this.pos0.length; e++) {
          const a = this.pos0[e];
          (l = window.EffectManager.CakeBlack.clone()).transform.rotate(new Laya.Vector3(0, 0, 10 * a), !0, !1),
            this.moveCake1.push(l),
            l.transform.position = new Laya.Vector3(0, 0, -20 * t),
            window.NodeManage.scenes2.addChild(l)
        }
        if (window.NodeManage.scenes2.addChild(this.Round0),
          this.pos1 = window.gameData.paintpos1,
          this.pos1.length > 0) {
          for (let e = 0; e < this.pos1.length; e++) {
            const a = this.pos1[e];
            var l;
            (l = window.EffectManager.CakeGray.clone()).transform.rotate(new Laya.Vector3(0, 0, 10 * a), !0, !1),
              this.moveCake2.push(l),
              l.transform.position = new Laya.Vector3(0, 0, -20 * t),
              window.NodeManage.scenes2.addChild(l)
          }
          window.NodeManage.scenes2.addChild(this.Round1)
        } else
          this.moveCake2 = [];
        this.paintparam0 = window.gameData.paintparam0,
          this.paintparam1 = window.gameData.paintparam1,
          this.RotateState0 = this.paintparam0[0],
          this.RotateSpeed0 = Number(this.paintparam0[1]),
          this.RotateSpeed1 = Number(this.paintparam1[1]),
          this.RotateState1 = this.paintparam1[0]
      } else {
        for (let e = 0; e < 36; e++) {
          const a = this.goldCake2[e];
          a.transform.rotate(new Laya.Vector3(0, 0, 10 * e - 90), !0, !1),
            a.transform.position = new Laya.Vector3(0, 0, -20 * t),
            window.NodeManage.scenes2.addChild(a)
        }
        window.NodeManage.scenes2.addChild(this.Round0)
      }
      0 != t ? (window.gameData.monReady = !1,
        Laya.timer.loop(1, this, this.AllMove)) : Laya.timer.once(500, this, function () {
          window.gameData.monReady = !0
        }),
        Laya.timer.frameLoop(1, this, this.timeMove)
    }
    AllMove () {
      if (100 == this.AllMoveNum)
        Laya.timer.clear(this, this.AllMove),
          window.gameData.monReady = !0,
          this.AllMoveNum = 0;
      else {
        if (this.AllMoveNum += 1,
          this.Round0.transform.translate(new Laya.Vector3(0, 0, .2)),
          this.Round1.transform.translate(new Laya.Vector3(0, 0, .2)),
          this.standardCake.transform.translate(new Laya.Vector3(0, 0, .2)),
          null != this.colorFulCake && this.colorFulCake.transform.translate(new Laya.Vector3(0, 0, .2)),
          null != this.colorFulCake2 && this.colorFulCake2.transform.translate(new Laya.Vector3(0, 0, .2)),
          this.moveCake1.length > 0)
          for (let e = 0; e < this.moveCake1.length; e++) {
            this.moveCake1[e].transform.translate(new Laya.Vector3(0, 0, .2))
          }
        if (this.moveCake2.length > 0)
          for (let e = 0; e < this.moveCake2.length; e++) {
            this.moveCake2[e].transform.translate(new Laya.Vector3(0, 0, .2))
          }
        if (this.goldCake2.length > 0)
          for (let e = 0; e < this.goldCake2.length; e++) {
            this.goldCake2[e].transform.translate(new Laya.Vector3(0, 0, .2))
          }
      }
    }
    timeMove () {
      if (0 == window.gameData.giftStage && !this.nmNow) {
        if (!this.RotateStop0) {
          for (let e = 0; e < this.moveCake1.length; e++) {
            const t = this.moveCake1[e];
            this.RotateState0 ? t.transform.rotate(new Laya.Vector3(0, 0, 1 * this.RotateSpeed0), !0, !1) : t.transform.rotate(new Laya.Vector3(0, 0, -1 * this.RotateSpeed0), !0, !1)
          }
          this.RotateState0 ? this.RotateNum0 += this.RotateSpeed0 : this.RotateNum0 -= this.RotateSpeed0;
          var e = this.paintparam0[2]
            , t = Number(this.paintparam0[4]);
          this.RotateNum0 % e == 0 && (0 == this.paintparam0[3] && (this.RotateState0 = 1 - this.RotateState0),
            this.RotateStop0 = !0,
            0 != t ? Laya.timer.once(t, this, function () {
              this.RotateStop0 = !1
            }) : Laya.timer.once(10, this, function () {
              this.RotateStop0 = !1
            }))
        }
        if (!this.RotateStop1 && this.moveCake2.length > 0) {
          for (let e = 0; e < this.moveCake2.length; e++) {
            const t = this.moveCake2[e];
            this.RotateState1 ? t.transform.rotate(new Laya.Vector3(0, 0, 1 * this.RotateSpeed1), !0, !1) : t.transform.rotate(new Laya.Vector3(0, 0, -1 * this.RotateSpeed1), !0, !1)
          }
          this.RotateState1 ? this.RotateNum1 += this.RotateSpeed1 : this.RotateNum1 -= this.RotateSpeed1;
          e = this.paintparam1[2];
          var a = Number(this.paintparam1[4]);
          this.RotateNum1 % e == 0 && (0 == this.paintparam1[3] && (this.RotateState1 = 1 - this.RotateState1),
            this.RotateStop1 = !0,
            0 != a ? Laya.timer.once(t, this, function () {
              this.RotateStop1 = !1
            }) : Laya.timer.once(10, this, function () {
              this.RotateStop1 = !1
            }))
        }
      }
      if (4 != this.moveNum && (this.moveNum += 1,
        this.colorFulCake.transform.rotate(new Laya.Vector3(0, 0, 2.5), !0, !1),
        window.gameData.doubleMode && this.colorFulCake2.transform.rotate(new Laya.Vector3(0, 0, 2.5), !0, !1),
        this.standardCake.transform.rotate(new Laya.Vector3(0, 0, 2.5), !0, !1),
        this.goldCake2.length > 0))
        for (let e = 0; e < this.goldCake2.length; e++) {
          this.goldCake2[e].transform.rotate(new Laya.Vector3(0, 0, 2.5), !0, !1)
        }
      this.standardInit < 36 && (this.standardCake.getChildAt(this.standardInit).active = !0,
        this.standardInit += 1)
    }
    carRemove () {
      if (window.NodeManage.scenes2.removeChild(this.Round0),
        window.NodeManage.scenes2.removeChild(this.Round1),
        window.NodeManage.scenes2.removeChild(this.standardCake),
        this.Round0.destroy(),
        this.Round1.destroy(),
        this.standardCake.destroy(),
        null != this.colorFulCake && (window.NodeManage.scenes2.removeChild(this.colorFulCake),
          this.colorFulCake.destroy()),
        null != this.colorFulCake2 && (window.NodeManage.scenes2.removeChild(this.colorFulCake2),
          this.colorFulCake2.destroy()),
        this.moveCake1.length > 0)
        for (let e = 0; e < this.moveCake1.length; e++) {
          const t = this.moveCake1[e];
          window.NodeManage.scenes2.removeChild(t),
            t.destroy()
        }
      if (this.moveCake2.length > 0)
        for (let e = 0; e < this.moveCake2.length; e++) {
          const t = this.moveCake2[e];
          window.NodeManage.scenes2.removeChild(t),
            t.destroy()
        }
      if (this.goldCake2.length > 0) {
        for (let e = 0; e < this.goldCake2.length; e++) {
          const t = this.goldCake2[e];
          window.NodeManage.scenes2.removeChild(t),
            t.destroy()
        }
        this.goldCake2 = []
      }
      this.destroy()
    }
    bulletHit () {
      if (1 != window.gameData.playerMove) {
        var e = !1
          , t = !1;
        for (let i = 0; i < this.pos0.length; i++) {
          (a = (10 * this.pos0[i] + this.RotateNum0) % 360) < 0 && (a += 360),
            a > 270 && a < 280 && (e = !0),
            (a > 280 && a < 290 || a > 260 && a < 270) && (t = !0)
        }
        if (this.pos1.length > 0)
          for (let i = 0; i < this.pos1.length; i++) {
            var a;
            (a = (10 * this.pos1[i] + this.RotateNum1) % 360) < 0 && (a += 360),
              a > 270 && a < 280 && (e = !0),
              (a > 280 && a < 290 || a > 260 && a < 270) && (t = !0)
          }
        e && !window.gameData.nmState ? (Laya.timer.clear(this, this.timeMove),
          window.EffectManager.createEffect3(),
          window.eventDis.dispatchEvent("GameLose")) : (t && !window.gameData.nmState && window.eventDis.dispatchEvent("nmADD"),
            this.drawColor())
      }
    }
    NMStart () {
      window.gameData.monReady = !1,
        this.nmNow = !0,
        this.nmNuw = 0,
        Laya.timer.frameLoop(1, this, this.monsterMove),
        window.NodeManage.scenes2.removeChild(this.colorFulCake),
        window.gameData.doubleMode && (window.NodeManage.scenes2.removeChild(this.colorFulCake2),
          this.colorFulCake2.destroy(),
          window.gameData.doubleMode = !1);
      var e = this.colorFulCake.transform.position.z;
      this.colorFulCake.destroy(),
        this.colorFulCake = window.EffectManager.CakeList[window.gameData.carNumberNow + 18].clone(),
        this.colorFulCake.transform.rotate(new Laya.Vector3(0, 0, 270), !0, !1),
        this.colorFulCake.transform.position = new Laya.Vector3(0, 0, e),
        window.NodeManage.scenes2.addChild(this.colorFulCake);
      for (let e = 0; e < this.colorFulCake.numChildren; e++) {
        const t = this.colorFulCake.getChildAt(e);
        t.active = !1,
          t.transform.rotate(new Laya.Vector3(0, 0, 10 * e), !0, !1)
      }
      window.NodeManage.scenes2.removeChild(this.standardCake);
      e = this.standardCake.transform.position.z;
      this.standardCake.destroy(),
        this.standardCake = window.EffectManager.CakeList[0].clone(),
        this.standardCake.transform.rotate(new Laya.Vector3(0, 0, 270), !0, !1),
        this.standardCake.transform.position = new Laya.Vector3(0, 0, e),
        window.NodeManage.scenes2.addChild(this.standardCake);
      for (let e = 0; e < this.standardCake.numChildren; e++) {
        const t = this.standardCake.getChildAt(e);
        t.active = !0,
          t.transform.rotate(new Laya.Vector3(0, 0, 10 * e), !0, !1)
      }
      this.successNum = 0,
        Laya.timer.once(200, this, function () {
          window.gameData.nmShoot = !0,
            window.gameData.monReady = !0
        })
    }
    monsterMove () {
      if (0 == this.nmNuw) {
        if (this.yList0 = [],
          this.yList0 = [],
          this.moveCake1.length > 0)
          for (let e = 0; e < this.moveCake1.length; e++)
            this.yList0.push(-Math.floor(3 * Math.random()) / 100 - .01);
        if (this.moveCake2.length > 0)
          for (let e = 0; e < this.moveCake2.length; e++)
            this.yList1.push(-Math.floor(3 * Math.random()) / 100 - .01)
      }
      if (this.moveCake1.length > 0)
        for (let e = 0; e < this.moveCake1.length; e++) {
          const t = this.moveCake1[e];
          100 == this.nmNuw ? (window.NodeManage.scenes2.removeChild(t),
            t.destroy()) : t.transform.translate(new Laya.Vector3(0, this.yList0[e], 0), !1)
        }
      if (this.moveCake2.length > 0)
        for (let e = 0; e < this.moveCake2.length; e++) {
          const t = this.moveCake2[e];
          100 == this.nmNuw ? (window.NodeManage.scenes2.removeChild(t),
            t.destroy()) : t.transform.translate(new Laya.Vector3(0, this.yList1[e], 0), !1)
        }
      100 == this.nmNuw ? (Laya.timer.clear(this, this.monsterMove),
        this.nmNuw = 0) : this.nmNuw += 1
    }
    drawColor () {
      if (window.gameData.nmShoot || !window.gameData.nmState) {
        var e = this.successNum;
        if (e < 36) {
          var t = 0;
          if (0 != e && (t = 36 - e),
            window.gameData.doubleMode)
            if (e % 2 == 0)
              var a = this.colorFulCake.getChildAt(18 - Math.ceil(e / 2));
            else
              a = this.colorFulCake2.getChildAt(18 - Math.ceil(e / 2));
          else
            a = this.colorFulCake.getChildAt(t);
          var i = this.standardCake.getChildAt(t);
          a.active = !0,
            i.active = !1,
            a.getChildAt(0)._components[0].play("CakeHit"),
            this.moveNum = 0
        }
        if (e += 1,
          this.successNum += 1,
          0 == window.gameData.giftStage)
          window.gameData.ScoreNow += 12,
            window.gameData.ScoreNow > window.gameData.MaxScore && (window.gameData.MaxScore = window.gameData.ScoreNow,
              localStorage.setItem("MaxScoreTY", window.gameData.ScoreNow + ""));
        else {
          window.gameData.goldNow += 10;
          var o = this.goldCake2[t];
          o.getChildAt(0)._components[0].play("JinbiDeath"),
            Laya.timer.once(300, this, function () {
              o && window.NodeManage.scenes2.removeChild(o)
            });
          var n = new Laya.Image("mainPage/Ui_Coin.png");
          n.pos(649, 115),
            Laya.stage.addChild(n),
            Laya.Tween.from(n, {
              y: 100
            }, 500, Laya.Ease.elasticOut, Laya.Handler.create(this, function () {
              Laya.stage.removeChild(n)
            }), 0)
        }
        36 == e && (Laya.timer.clear(this, this.timeMove),
          window.gameData.nmShoot = !1,
          window.gameData.nmState = !1,
          window.eventDis.dispatchEvent("GameWin"))
      }
    }
    destroy () {
      Laya.Tween.clearAll(this),
        Laya.timer.clearAll(this),
        this.body && (this.body.removeChildren(),
          this.body.removeSelf(),
          delete this.body),
        window.eventDis.delAllEvnt(this),
        this.removeChildren(),
        this.removeSelf()
    }
  }
  class o {
    constructor() {
      this._enemy = [],
        this.enemy = void 0,
        this.stageLevel = 1,
        this.enemyNum = 0,
        this.enemyNumJudge = 0,
        this.MonsterNum = 0,
        this.MonsterMax = 0
    }
    MonsterManager () { }
    init () {
      window.eventDis.addEvntListener("GameWin", this, this.StageRefresh),
        window.eventDis.addEvntListener("GameRelife", this, this.StageRelife)
    }
    StageInit () {
      console.log(1),
        Laya.timer.once(40, this, this.createMonster, [0])
    }
    StageRelife () {
      this.enemy.carRemove(),
        Laya.timer.once(40, this, this.createMonster, [this.MonsterNum, !1])
    }
    StageTZ () {
      this.enemy.carRemove(),
        Laya.timer.once(40, this, this.createMonster, [0])
    }
    StageRefresh () {
      window.EffectManager.createEffect2(),
        this.MonsterNum != this.MonsterMax ? (Laya.timer.once(40, this, this.createMonster, [this.MonsterNum + 1]),
          window.eventDis.dispatchEvent("shadowRefresh")) : window.eventDis.dispatchEvent("GameOver")
    }
    createMonster (e, t = !0) {
      var a = window.gameData.enemyNum
        , o = window.unitData.LevelData;
      window.gameData.TZNow && (a = window.gameData.TZNum + 1,
        o = window.unitData.LevelData2);
      var n = window.unitData.FanData
        , s = window.unitData.PanData
        , r = o[a - 1]
        , l = this.dealstr(r.pan);
      if (this.MonsterMax = l.length - 1,
        this.MonsterNum = e,
        1e3 != l[e] && (window.gameData.enemyNum % 5 != 0 || 5 == window.gameData.enemyNum) || window.gameData.TZNow) {
        window.gameData.giftStage = !1;
        var h = this.dealstr(s[l[e]].fan);
        if (2 == h.length) {
          var g = n[h[0]];
          window.gameData.paintpos0 = this.dealstr(g.paint),
            (m = []).push(g.initialTurn),
            m.push(g.speed),
            m.push(g.changeAngle),
            m.push(g.changeTurn),
            m.push(g.changeStopTime),
            window.gameData.paintparam0 = m;
          var d = n[h[1]];
          window.gameData.paintpos1 = this.dealstr(d.paint);
          var p = [];
          p.push(d.initialTurn),
            p.push(d.speed),
            p.push(d.changeAngle),
            p.push(d.changeTurn),
            p.push(d.changeStopTime),
            window.gameData.paintparam1 = p
        } else if (1 == h.length) {
          var m;
          g = n[h[0]];
          window.gameData.paintpos0 = this.dealstr(g.paint),
            (m = []).push(g.initialTurn),
            m.push(g.speed),
            m.push(g.changeAngle),
            m.push(g.changeTurn),
            m.push(g.changeStopTime),
            window.gameData.paintparam0 = m
        }
      } else
        window.gameData.giftStage = !0;
      null != this.enemy && this.enemy.carRemove();
      var c = new i({
        ind: e
      });
      this.enemy = c,
        0 != e && t && window.eventDis.dispatchEvent("PlayerMove")
    }
    removeNM () {
      this.enemy.NMStart()
    }
    dealstr (e) {
      var t = []
        , a = e.toString();
      return a.indexOf(",") > -1 ? t = a.split(",") : t.push(e),
        t
    }
  }
  o.Instance = new o;
  class n extends Laya.Image {
    constructor(e) {
      super(),
        this.hurttime = 0,
        this.bullet = void 0,
        this.init(e)
    }
    init (e) {
      window.gameData.playSound("res/sound/Audio_shoot.mp3", 1),
        this.bullet = window.EffectManager.BallList[e[0]].clone(),
        this.bullet.transform.position = new Laya.Vector3(0, .3, 2.2 + window.gameData.posNow[1]),
        window.NodeManage.scenes2.addChild(this.bullet),
        Laya.timer.frameLoop(1, this, function () {
          if (this.bullet.transform.translate(new Laya.Vector3(0, .02, -window.gameData.BulletMove), !1),
            this.bullet.transform.position.z <= .1 + window.gameData.posNow[1]) {
            window.NodeManage.scenes2.removeChild(this.bullet),
              this.bullet.destroy();
            var t = window.monsterManage.enemy;
            window.EffectManager.createEffect([window.gameData.posNow[1], e[0]]),
              t.bulletHit(),
              this.destroy()
          }
        })
    }
    destroy () {
      Laya.Tween.clearAll(this),
        Laya.timer.clearAll(this),
        window.eventDis.delAllEvnt(this),
        this.destroyChildren(),
        this.removeChildren(),
        this.removeSelf()
    }
  }
  class s {
    constructor() {
      this.power = 0,
        this.shootNum = 0,
        this.changeNow = !1,
        this.changeOld = !1,
        this.shootOpen = !1,
        this.ballList = [[11, 3], [12, 8, 1], [1, 5, 11], [8, 13], [12, 3, 8], [2, 7, 5], [13, 1, 9], [2, 8, 9], [5, 6, 7, 8]]
    }
    BulletManager () { }
    init () {
      window.eventDis.addEvntListener("GameStart", this, this.StageInit)
    }
    StageInit () {
      this.changeOld = !1,
        this.shootNum = 0,
        Laya.timer.clear(this, this.butt),
        Laya.timer.frameLoop(1, this, this.butt)
    }
    butt () {
      var e = window.gameData.miniCar.getChildAt(0).getComponent(Laya.Animator);
      window.gameData.nmShoot && window.gameData.nmState && !this.shootOpen ? (this.shootOpen = !0,
        this.createBullet(),
        this.power = 0,
        Laya.timer.clear(this, this.createBullet),
        Laya.timer.frameLoop(8, this, this.createBullet)) : window.gameData.shootNow && !this.changeOld ? (this.shootOpen = !1,
          this.changeOld = !0,
          this.createBullet(),
          this.power = 0,
          Laya.timer.clear(this, this.createBullet),
          Laya.timer.frameLoop(5, this, this.createBullet)) : (!window.gameData.shootNow && this.changeOld || !window.gameData.nmState && this.shootOpen) && (this.changeOld = !1,
            Laya.timer.clear(this, this.createBullet)),
        window.gameData.shootNow || (this.power += 1),
        13 == this.power && e.crossFade("Stand", .1)
    }
    createBullet () {
      window.gameData.miniCar.getChildAt(0).getComponent(Laya.Animator).play("Attack", 0, 0);
      var e = 0
        , t = window.gameData.doubleColor;
      if (1 == window.gameData.giftStage) {
        var a = this.ballList[window.gameData.carNumberNow]
          , i = Math.floor(Math.random() * a.length);
        i == a.length && (i -= 1),
          e = a[i] - 1
      } else if (window.gameData.doubleMode)
        e = t[this.shootNum % 2];
      else if (e = window.gameData.colorNum - 1,
        17 == window.gameData.colorNum || 16 == window.gameData.colorNum) {
        var o = Math.floor(7 * Math.random());
        8 == o && (o -= 1),
          e = o
      }
      new n([e]);
      this.shootNum += 1
    }
  }
  s.Instance = new s;
  class r extends Laya.EventDispatcher {
    constructor() {
      super(),
        this.gameStartNow = !1,
        this.EventDis = new Laya.EventDispatcher,
        this._eventPair = new Array
    }
    dispatchEvent (e, t) {
      Laya.stage.event(e, [t])
    }
    addEvntListener (e, t, a, i) {
      Laya.stage.on(e, t, a);
      var o = this.getClassName(t);
      t.name && (o = t.name),
        o && !this._eventPair[o] && (this._eventPair[o] = {}),
        this._eventPair[o][e] = a
    }
    delAllEvnt (e) {
      var t = this.getClassName(e);
      if (e.name && (t = e.name),
        this._eventPair[t])
        for (var a in this._eventPair[t]) {
          var i = this._eventPair[t][a];
          i && (Laya.stage.off(a, e, i),
            delete this._eventPair[t][a])
        }
    }
    delEvntName (e, t) {
      var a = this.getClassName(t);
      if (t.name && (a = t.name),
        this._eventPair[a]) {
        var i = this._eventPair[a][e];
        i && (Laya.stage.off(e, t, i),
          delete this._eventPair[a][e])
      }
    }
    getClassName (e) {
      if (e && e.constructor && e.constructor.toString()) {
        if (e.constructor.name)
          return e.constructor.name;
        var t = e.constructor.toString();
        if ("[" == t.charAt(0))
          var a = t.match(/\[\w+\s*(\w+)\]/);
        else
          a = t.match(/function\s*(\w+)/);
        if (a && 2 == a.length)
          return a[1]
      }
    }
    AddGoldCount () {
      window.HttpManager.connect(window.HttpManager.getAddGoldCountHttpUrl(), e => {
        0 === e.ret && (window.unitData.awardCount += 1)
      }
      )
    }
    gameStart () {
      if (console.log(1),
        !this.gameStartNow) {
        this.gameStartNow = !0,
          Laya.timer.once(500, this, function () {
            this.gameStartNow = !1
          });
        for (var e = window.gameData.posNow, t = window.gameData.sceneList, a = 0; a < t.length; a++) {
          t[a].transform.translate(new Laya.Vector3(0, 0, 0 - e[1]))
        }
        window.gameData.posNow = [0, 0],
          window.gameData.miniCar.transform.position = new Laya.Vector3(0, 0, 2.4),
          window.monsterManage.StageInit(),
          window.BulletManager.StageInit(),
          window.gameData.gamePause = !1
      }
    }
  }
  r.Instance = new r;
  var l, h = Laya.ClassUtils.regClass;
  !function (e) {
    !function (e) {
      !function (e) {
        class t extends Laya.Dialog {
          constructor() {
            super()
          }
          createChildren () {
            super.createChildren(),
              this.createView(t.uiView)
          }
        }
        t.uiView = {
          type: "Dialog",
          props: {
            width: 750,
            height: 1334
          },
          compId: 1,
          child: [{
            type: "Label",
            props: {
              y: 585,
              x: 300,
              var: "testText",
              text: "加载中",
              fontSize: 50,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 4
          }],
          loadList: [],
          loadList3D: []
        },
          e.MainPageDialogUI = t,
          h("game.ui.LayaPlane.MainPageDialogUI", t);
        class a extends Laya.Dialog {
          constructor() {
            super()
          }
          createChildren () {
            super.createChildren(),
              this.createView(a.uiView)
          }
        }
        a.uiView = {
          type: "Dialog",
          props: {
            width: 750,
            height: 1334
          },
          compId: 1,
          child: [{
            type: "Label",
            props: {
              y: 180,
              x: 75,
              visible: !1,
              var: "testText",
              text: "叶片1位置（格式1,2,3）",
              fontSize: 50,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 4
          }, {
            type: "TextArea",
            props: {
              y: 256,
              x: 119,
              width: 511,
              visible: !1,
              var: "text0",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 8
          }, {
            type: "Label",
            props: {
              y: 308,
              x: 75,
              visible: !1,
              text: "叶片2位置（格式1,2,3）",
              fontSize: 50,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 9
          }, {
            type: "TextArea",
            props: {
              y: 384,
              x: 119,
              width: 511,
              visible: !1,
              var: "text1",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 10
          }, {
            type: "Label",
            props: {
              y: 467,
              x: 5,
              width: 748,
              visible: !1,
              text: "叶片1其他参数,格式:",
              overflow: "scroll",
              height: 39,
              fontSize: 30,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 11
          }, {
            type: "TextArea",
            props: {
              y: 577,
              x: 119,
              width: 511,
              visible: !1,
              var: "text2",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 12
          }, {
            type: "Label",
            props: {
              y: 522,
              x: 0,
              width: 748,
              visible: !1,
              text: "(initialTurn,speed,changeAngle,changeTurn,changeStopTime）",
              overflow: "scroll",
              height: 45,
              fontSize: 25,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 13
          }, {
            type: "Label",
            props: {
              y: 647.5,
              x: 5,
              width: 748,
              visible: !1,
              text: "叶片2其他参数,格式:",
              overflow: "scroll",
              height: 39,
              fontSize: 30,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 14
          }, {
            type: "TextArea",
            props: {
              y: 756,
              x: 119,
              width: 511,
              visible: !1,
              var: "text3",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 15
          }, {
            type: "Label",
            props: {
              y: 701,
              x: 0,
              width: 748,
              visible: !1,
              text: "(initialTurn,speed,changeAngle,changeTurn,changeStopTime）",
              overflow: "scroll",
              height: 45,
              fontSize: 25,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 16
          }, {
            type: "Label",
            props: {
              y: 869,
              x: 288,
              width: 207,
              var: "ok_btn",
              text: "确认",
              overflow: "scroll",
              height: 45,
              fontSize: 25,
              font: "SimHei",
              color: "#000000",
              bgColor: "#ffffff",
              align: "center"
            },
            compId: 19
          }, {
            type: "Label",
            props: {
              y: 938,
              x: 288,
              width: 207,
              var: "cancel_btn",
              text: "取消",
              overflow: "scroll",
              height: 45,
              fontSize: 25,
              font: "SimHei",
              color: "#000000",
              bgColor: "#ffffff",
              align: "center"
            },
            compId: 21
          }, {
            type: "Label",
            props: {
              y: 32,
              x: 66,
              width: 242,
              text: "当前球（子弹）",
              height: 50,
              fontSize: 30,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 22
          }, {
            type: "TextArea",
            props: {
              y: 108,
              x: 110,
              width: 125,
              var: "text5",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 23
          }, {
            type: "Label",
            props: {
              y: 32,
              x: 308,
              width: 242,
              text: "射击间隔（毫秒）",
              height: 50,
              fontSize: 30,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 26
          }, {
            type: "TextArea",
            props: {
              y: 108,
              x: 355,
              width: 125,
              var: "text6",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 27
          }, {
            type: "Label",
            props: {
              y: 32,
              x: 511,
              width: 242,
              text: "子弹速度",
              height: 50,
              fontSize: 30,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 28
          }, {
            type: "TextArea",
            props: {
              y: 108,
              x: 560,
              width: 125,
              var: "text7",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 29
          }, {
            type: "Label",
            props: {
              y: 205,
              x: 51.5,
              width: 242,
              text: "当前关卡",
              height: 50,
              fontSize: 30,
              font: "SimHei",
              color: "#ffffff",
              align: "center"
            },
            compId: 30
          }, {
            type: "TextArea",
            props: {
              y: 269,
              x: 110,
              width: 125,
              var: "text_stage",
              type: "text",
              height: 52,
              fontSize: 40,
              color: "#000000",
              bgColor: "#ffffff"
            },
            compId: 31
          }],
          loadList: [],
          loadList3D: []
        },
          e.SettingDialogUI = a,
          h("game.ui.LayaPlane.SettingDialogUI", a);
        class i extends Laya.Dialog {
          constructor() {
            super()
          }
          createChildren () {
            super.createChildren(),
              this.createView(i.uiView)
          }
        }
        i.uiView = {
          type: "Dialog",
          props: {
            y: 0,
            x: 0,
            width: 720,
            height: 2e3
          },
          compId: 1,
          child: [{
            type: "Box",
            props: {
              y: 0,
              x: 0,
              width: 720,
              var: "box_dialog",
              height: 2e3
            },
            compId: 17,
            child: [{
              type: "Box",
              props: {
                y: 0,
                x: 0,
                width: 720,
                visible: !1,
                var: "start_box",
                height: 1230
              },
              compId: 410,
              child: [{
                type: "Image",
                props: {
                  y: 29,
                  x: 0,
                  var: "Setting_btn",
                  skin: "mainPage/Ui_Setup.png"
                },
                compId: 408
              }, {
                type: "Label",
                props: {
                  y: 123,
                  x: 640,
                  width: 109,
                  var: "gold_text",
                  text: "1234",
                  scaleY: .45,
                  scaleX: .45,
                  pivotX: 119,
                  height: 41,
                  fontSize: 40,
                  font: "level_W",
                  align: "right"
                },
                compId: 456
              }, {
                type: "Image",
                props: {
                  y: 115,
                  x: 649,
                  skin: "mainPage/Ui_Coin.png"
                },
                compId: 457
              }, {
                type: "Image",
                props: {
                  y: 117,
                  x: 308,
                  var: "stage_te",
                  skin: "mainPage/Ui_LevelFont.png",
                  scaleY: .8,
                  scaleX: .8
                },
                compId: 458
              }, {
                type: "Label",
                props: {
                  y: 112,
                  x: 375,
                  width: 109,
                  var: "stage_text",
                  text: "1234",
                  scaleY: .4,
                  scaleX: .4,
                  height: 41,
                  fontSize: 40,
                  font: "level_W",
                  align: "left"
                },
                compId: 459
              }, {
                type: "Image",
                props: {
                  y: 908,
                  x: 0,
                  var: "challenge",
                  skin: "mainPage/Ui_Challenge.png"
                },
                compId: 460
              }, {
                type: "Image",
                props: {
                  y: 727,
                  x: 542,
                  var: "shopBtn",
                  skin: "mainPage/Ui_Shop.png"
                },
                compId: 461
              }, {
                type: "Image",
                props: {
                  y: 908,
                  x: 542,
                  var: "rankBtn",
                  skin: "mainPage/Btn_Rank.png"
                },
                compId: 866
              }, {
                type: "Image",
                props: {
                  y: 766,
                  x: 83,
                  width: 553,
                  skin: "mainPage/Btn_Hold.png",
                  height: 80
                },
                compId: 627
              }, {
                type: "Image",
                props: {
                  y: 727,
                  x: 0,
                  var: "Challenge_img",
                  skin: "mainPage/Btn_Daily reward.png"
                },
                compId: 887
              }]
            }, {
              type: "Box",
              props: {
                y: 184,
                x: 295,
                visible: !1,
                var: "stage_box"
              },
              compId: 614,
              child: [{
                type: "Image",
                props: {
                  var: "stage_point",
                  skin: "mainPage/Ui_LevelRing.png"
                },
                compId: 499
              }, {
                type: "Image",
                props: {
                  y: 6,
                  x: 6,
                  var: "stage_point0",
                  skin: "mainPage/Ui_Ring.png"
                },
                compId: 500
              }, {
                type: "Image",
                props: {
                  y: 6,
                  x: 60,
                  var: "stage_point1",
                  skin: "mainPage/Ui_Ring.png"
                },
                compId: 501
              }, {
                type: "Image",
                props: {
                  y: 6,
                  x: 114,
                  var: "stage_point2",
                  skin: "mainPage/Ui_Ring.png"
                },
                compId: 502
              }, {
                type: "Box",
                props: {
                  y: 0,
                  x: -56,
                  width: 140,
                  var: "stage_shadow",
                  renderType: "mask",
                  height: 30
                },
                compId: 615,
                child: [{
                  type: "Image",
                  props: {
                    y: -1,
                    x: 0,
                    width: 140,
                    skin: "mainPage/Ui_BgPurple.png",
                    height: 30
                  },
                  compId: 616
                }]
              }]
            }, {
              type: "Box",
              props: {
                y: 0,
                x: 0,
                width: 722,
                visible: !1,
                var: "fight_box",
                height: 1126
              },
              compId: 415,
              child: [{
                type: "Label",
                props: {
                  y: 123,
                  x: 640,
                  width: 109,
                  var: "fight_gold",
                  text: "1234",
                  scaleY: .45,
                  scaleX: .45,
                  pivotX: 109,
                  height: 41,
                  fontSize: 40,
                  font: "level_W",
                  align: "right"
                },
                compId: 495
              }, {
                type: "Image",
                props: {
                  y: 115,
                  x: 649,
                  skin: "mainPage/Ui_Coin.png"
                },
                compId: 496
              }, {
                type: "Image",
                props: {
                  y: 118,
                  x: 309,
                  var: "fight_sta",
                  skin: "mainPage/Ui_LevelFont.png",
                  scaleY: .8,
                  scaleX: .8
                },
                compId: 497
              }, {
                type: "Label",
                props: {
                  y: 112,
                  x: 376,
                  width: 109,
                  var: "fight_stage",
                  text: "1234",
                  scaleY: .4,
                  scaleX: .4,
                  height: 41,
                  fontSize: 40,
                  font: "level_W",
                  align: "left"
                },
                compId: 498
              }, {
                type: "Label",
                props: {
                  y: 148,
                  x: 361,
                  width: 109,
                  var: "score_text",
                  text: "1234",
                  scaleY: .4,
                  scaleX: .4,
                  pivotX: 55,
                  height: 41,
                  fontSize: 40,
                  font: "level_W",
                  align: "center"
                },
                compId: 629
              }, {
                type: "Box",
                props: {
                  y: 836,
                  x: 566,
                  width: 144,
                  var: "nm_box",
                  height: 290
                },
                compId: 504,
                child: [{
                  type: "Image",
                  props: {
                    y: 0,
                    x: 0,
                    skin: "mainPage/Btn_Near.png"
                  },
                  compId: 503
                }, {
                  type: "Image",
                  props: {
                    y: 83,
                    x: 22,
                    skin: "mainPage/Ui_Colour9.png"
                  },
                  compId: 823
                }, {
                  type: "Label",
                  props: {
                    y: 48,
                    x: 72,
                    width: 109,
                    var: "nm_text",
                    text: "1234",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 55,
                    height: 30,
                    fontSize: 30,
                    font: "level_W",
                    align: "center"
                  },
                  compId: 505
                }, {
                  type: "Image",
                  props: {
                    y: 84,
                    x: 22,
                    visible: !1,
                    var: "nmImg7",
                    skin: "mainPage/Ui_Colour1.png"
                  },
                  compId: 506
                }, {
                  type: "Image",
                  props: {
                    y: 111,
                    x: 22,
                    visible: !1,
                    var: "nmImg6",
                    skin: "mainPage/Ui_Colour2.png"
                  },
                  compId: 507
                }, {
                  type: "Image",
                  props: {
                    y: 131,
                    x: 22,
                    visible: !1,
                    var: "nmImg5",
                    skin: "mainPage/Ui_Colour3.png"
                  },
                  compId: 508
                }, {
                  type: "Image",
                  props: {
                    y: 151,
                    x: 22,
                    visible: !1,
                    var: "nmImg4",
                    skin: "mainPage/Ui_Colour4.png"
                  },
                  compId: 509
                }, {
                  type: "Image",
                  props: {
                    y: 171,
                    x: 22,
                    visible: !1,
                    var: "nmImg3",
                    skin: "mainPage/Ui_Colour5.png"
                  },
                  compId: 510
                }, {
                  type: "Image",
                  props: {
                    y: 191,
                    x: 22,
                    visible: !1,
                    var: "nmImg2",
                    skin: "mainPage/Ui_Colour6.png"
                  },
                  compId: 511
                }, {
                  type: "Image",
                  props: {
                    y: 211,
                    x: 22,
                    visible: !1,
                    var: "nmImg1",
                    skin: "mainPage/Ui_Colour7.png"
                  },
                  compId: 512
                }, {
                  type: "Image",
                  props: {
                    y: 231,
                    x: 22,
                    visible: !1,
                    var: "nmImg0",
                    skin: "mainPage/Ui_Colour8.png"
                  },
                  compId: 513
                }]
              }, {
                type: "Image",
                props: {
                  y: 464,
                  x: 418,
                  width: 199,
                  visible: !0,
                  var: "danger_img",
                  skin: "mainPage/Ui_Near.png",
                  pivotY: 63,
                  pivotX: 100,
                  height: 126,
                  alpha: 0
                },
                compId: 617
              }]
            }, {
              type: "Image",
              props: {
                y: 0,
                x: 0,
                width: 720,
                visible: !1,
                var: "bac_pop",
                skin: "mainPage/Ui_BgPurple.png",
                height: 2e3,
                alpha: .7
              },
              compId: 465
            }, {
              type: "Box",
              props: {
                y: 1,
                x: 0,
                width: 720,
                visible: !1,
                var: "over_box"
              },
              compId: 416,
              child: [{
                type: "Box",
                props: {
                  visible: !1,
                  var: "over_box1"
                },
                compId: 527,
                child: [{
                  type: "Image",
                  props: {
                    y: 416,
                    x: 285,
                    skin: "mainPage/Ui_FailFont.png"
                  },
                  compId: 517
                }, {
                  type: "Image",
                  props: {
                    y: 552,
                    x: 283,
                    skin: "mainPage/Ui_Time1.png"
                  },
                  compId: 519
                }, {
                  type: "Image",
                  props: {
                    y: 548,
                    x: 279,
                    var: "yel_Round0",
                    skin: "mainPage/Ui_Time2.png"
                  },
                  compId: 520
                }, {
                  type: "Image",
                  props: {
                    y: 680,
                    x: 485,
                    width: 23,
                    var: "roundPoint0",
                    skin: "mainPage/Ui_TimeRing2.png",
                    pivotY: 12,
                    pivotX: 12,
                    height: 23
                  },
                  compId: 521
                }, {
                  type: "Label",
                  props: {
                    y: 661,
                    x: 386,
                    width: 109,
                    var: "time_text",
                    valign: "middle",
                    text: "2",
                    scaleY: 1.2,
                    scaleX: 1.2,
                    pivotY: 56,
                    pivotX: 55,
                    height: 111,
                    fontSize: 120,
                    font: "level_W",
                    align: "center"
                  },
                  compId: 522
                }, {
                  type: "Image",
                  props: {
                    y: 116,
                    x: 308,
                    skin: "mainPage/Ui_LevelFont.png",
                    scaleY: .8,
                    scaleX: .8
                  },
                  compId: 528
                }, {
                  type: "Label",
                  props: {
                    y: 112,
                    x: 375,
                    width: 109,
                    var: "StageTextL",
                    text: "1234",
                    scaleY: .4,
                    scaleX: .4,
                    height: 41,
                    fontSize: 40,
                    font: "level_W",
                    align: "left"
                  },
                  compId: 529
                }, {
                  type: "Image",
                  props: {
                    y: 320,
                    x: 232.5,
                    skin: "mainPage/Ui_BestRank.png"
                  },
                  compId: 534
                }, {
                  type: "Image",
                  props: {
                    y: 239,
                    x: 154.5,
                    skin: "mainPage/Ui_FontRank.png"
                  },
                  compId: 535
                }, {
                  type: "Image",
                  props: {
                    y: 300,
                    x: 171,
                    skin: "mainPage/Ui_Shape.png"
                  },
                  compId: 536
                }, {
                  type: "Label",
                  props: {
                    y: 246,
                    x: 437,
                    width: 125,
                    var: "NowScoreL",
                    text: "1234",
                    scaleY: .45,
                    scaleX: .45,
                    height: 46,
                    fontSize: 50,
                    font: "level_W",
                    align: "right"
                  },
                  compId: 537
                }, {
                  type: "Label",
                  props: {
                    y: 321,
                    x: 445,
                    width: 109,
                    var: "MaxScoreL",
                    text: "1234",
                    scaleY: .45,
                    scaleX: .45,
                    height: 41,
                    fontSize: 40,
                    font: "level_Y",
                    align: "left"
                  },
                  compId: 538
                }, {
                  type: "Image",
                  props: {
                    y: 819,
                    x: 193,
                    var: "loseAgain",
                    skin: "mainPage/Btn_Again.png"
                  },
                  compId: 539
                }, {
                  type: "Image",
                  props: {
                    y: 996,
                    x: 395,
                    width: 170,
                    var: "loseforgive",
                    skin: "mainPage/Btn_Giveup.png",
                    scaleY: .8,
                    scaleX: .8,
                    pivotY: 23,
                    pivotX: 85,
                    height: 45
                  },
                  compId: 540
                }]
              }, {
                type: "Box",
                props: {
                  visible: !1,
                  var: "overBox2"
                },
                compId: 541,
                child: [{
                  type: "Image",
                  props: {
                    y: 819,
                    x: 181,
                    var: "goldAgain",
                    skin: "mainPage/Btn_Again.png"
                  },
                  compId: 576
                }, {
                  type: "Image",
                  props: {
                    y: 249,
                    x: 234,
                    skin: "mainPage/Ui_TitleEnd.png"
                  },
                  compId: 581
                }, {
                  type: "Image",
                  props: {
                    y: 986,
                    x: 207,
                    var: "stageNext",
                    skin: "mainPage/Btn_Next.png"
                  },
                  compId: 582
                }, {
                  type: "Image",
                  props: {
                    y: 522.5,
                    x: 272,
                    skin: "mainPage/Ui_Earned.png"
                  },
                  compId: 583
                }, {
                  type: "Image",
                  props: {
                    y: 639,
                    x: 239,
                    width: 69,
                    skin: "mainPage/Ui_Coin.png",
                    height: 71
                  },
                  compId: 584
                }, {
                  type: "Label",
                  props: {
                    y: 679,
                    x: 352,
                    width: 155,
                    var: "overGold",
                    text: "2",
                    scaleY: .45,
                    scaleX: .45,
                    pivotY: 35,
                    height: 70,
                    fontSize: 60,
                    font: "level_Y",
                    align: "left"
                  },
                  compId: 585
                }, {
                  type: "Image",
                  props: {
                    y: 819,
                    x: 215.5,
                    var: "overBox2Con",
                    skin: "mainPage/Btn_Ok2.png"
                  },
                  compId: 879
                }]
              }, {
                type: "Box",
                props: {
                  y: 0,
                  x: 0,
                  width: 720,
                  visible: !1,
                  var: "overBox3",
                  height: 1121
                },
                compId: 593,
                child: [{
                  type: "Label",
                  props: {
                    y: 647,
                    x: 360,
                    width: 155,
                    var: "over_stage",
                    text: "2",
                    scaleY: 1.2,
                    scaleX: 1.2,
                    pivotY: 48,
                    pivotX: 78,
                    height: 96,
                    fontSize: 100,
                    font: "level_W",
                    align: "center"
                  },
                  compId: 599
                }, {
                  type: "Image",
                  props: {
                    y: 177,
                    x: 132,
                    skin: "mainPage/Ui_TitleVictory.png"
                  },
                  compId: 600
                }, {
                  type: "Image",
                  props: {
                    y: 555,
                    x: 320,
                    width: 79,
                    skin: "mainPage/Ui_LevelFont.png",
                    height: 39
                  },
                  compId: 602
                }, {
                  type: "Image",
                  props: {
                    y: 806,
                    x: 109,
                    var: "less6",
                    skin: "mainPage/Ui_Bonus1.png"
                  },
                  compId: 603,
                  child: [{
                    type: "Image",
                    props: {
                      y: 13.5,
                      x: 26,
                      var: "gold0",
                      skin: "mainPage/Ui_Bonus2.png"
                    },
                    compId: 604
                  }, {
                    type: "Image",
                    props: {
                      y: 13,
                      x: 147,
                      var: "gold1",
                      skin: "mainPage/Ui_Bonus2.png"
                    },
                    compId: 622
                  }, {
                    type: "Image",
                    props: {
                      y: 13,
                      x: 269,
                      var: "gold2",
                      skin: "mainPage/Ui_Bonus2.png"
                    },
                    compId: 625
                  }, {
                    type: "Image",
                    props: {
                      y: 13,
                      x: 392,
                      var: "gold3",
                      skin: "mainPage/Ui_Bonus2.png"
                    },
                    compId: 626
                  }, {
                    type: "Image",
                    props: {
                      y: -57,
                      x: 36,
                      var: "gold_fly",
                      skin: "mainPage/Ui_VictoryArrow.png"
                    },
                    compId: 606
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 908,
                    x: 293,
                    var: "less61",
                    skin: "mainPage/Ui_BonusFonus.png"
                  },
                  compId: 607
                }, {
                  type: "Image",
                  props: {
                    y: 404,
                    x: 238.5,
                    skin: "mainPage/Ui_BestRank.png"
                  },
                  compId: 608
                }, {
                  type: "Label",
                  props: {
                    y: 425,
                    x: 449,
                    width: 109,
                    var: "over_MaxScore",
                    text: "1234",
                    scaleY: .45,
                    scaleX: .45,
                    pivotY: 21,
                    height: 41,
                    fontSize: 40,
                    font: "level_Y",
                    align: "left"
                  },
                  compId: 609
                }]
              }]
            }, {
              type: "Box",
              props: {
                y: 128,
                x: 0,
                width: 104,
                visible: !1,
                var: "setting_box",
                height: 161
              },
              compId: 420,
              child: [{
                type: "Image",
                props: {
                  y: 14,
                  x: 0,
                  var: "settingicon0",
                  skin: "mainPage/Btn_Voice.png"
                },
                compId: 618
              }, {
                type: "Image",
                props: {
                  y: 94,
                  x: 2,
                  var: "settingicon1",
                  skin: "mainPage/Btn_Shock.png"
                },
                compId: 619
              }, {
                type: "Image",
                props: {
                  y: 31,
                  x: 10,
                  var: "setting_close0",
                  skin: "mainPage/Ui_SetupShape.png"
                },
                compId: 620
              }, {
                type: "Image",
                props: {
                  y: 109,
                  x: 11,
                  var: "setting_close1",
                  skin: "mainPage/Ui_SetupShape.png"
                },
                compId: 621
              }]
            }, {
              type: "Box",
              props: {
                y: 0,
                x: 0,
                width: 720,
                visible: !1,
                var: "shopping_box"
              },
              compId: 427,
              child: [{
                type: "Image",
                props: {
                  y: 208,
                  x: 0,
                  skin: "mainPage/Ui_BgShop2.png"
                },
                compId: 477
              }, {
                type: "Image",
                props: {
                  y: 170,
                  x: 151,
                  skin: "mainPage/Ui_Black.png"
                },
                compId: 478
              }, {
                type: "Image",
                props: {
                  y: 166,
                  x: 382,
                  skin: "mainPage/Ui_Black.png"
                },
                compId: 479
              }, {
                type: "Image",
                props: {
                  y: 168,
                  x: 144,
                  var: "shopBtn_L",
                  skin: "mainPage/Btn_Role.png"
                },
                compId: 475,
                child: [{
                  type: "Box",
                  props: {
                    visible: !1,
                    var: "starBox_L"
                  },
                  compId: 612,
                  child: [{
                    type: "Image",
                    props: {
                      y: 35,
                      x: 158,
                      skin: "mainPage/Ui_Stars.png"
                    },
                    compId: 480
                  }, {
                    type: "Image",
                    props: {
                      y: 0,
                      x: 31,
                      skin: "mainPage/Ui_Stars.png"
                    },
                    compId: 481
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 0,
                    x: 9,
                    var: "shop_black0",
                    skin: "mainPage/Ui_Black.png"
                  },
                  compId: 692
                }]
              }, {
                type: "Image",
                props: {
                  y: 166,
                  x: 373,
                  var: "shopBtn_R",
                  skin: "mainPage/Btn_Roads.png"
                },
                compId: 476,
                child: [{
                  type: "Box",
                  props: {
                    visible: !1,
                    var: "starBox_R"
                  },
                  compId: 611,
                  child: [{
                    type: "Image",
                    props: {
                      y: 0,
                      x: 21,
                      skin: "mainPage/Ui_Stars.png"
                    },
                    compId: 482
                  }, {
                    type: "Image",
                    props: {
                      y: 27,
                      x: 170,
                      skin: "mainPage/Ui_Stars.png"
                    },
                    compId: 483
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 0,
                    x: 9,
                    var: "shop_black1",
                    skin: "mainPage/Ui_Black.png"
                  },
                  compId: 693
                }]
              }, {
                type: "Image",
                props: {
                  y: 238.5,
                  x: 0,
                  skin: "mainPage/Ui_BgShop1.png"
                },
                compId: 469
              }, {
                type: "Image",
                props: {
                  y: 166,
                  x: 605,
                  var: "shop_close",
                  skin: "mainPage/Ui_Close.png"
                },
                compId: 471
              }, {
                type: "Image",
                props: {
                  y: 256,
                  x: 95.5,
                  skin: "mainPage/Ui_Progress3.png",
                  alpha: 1
                },
                compId: 472,
                child: [{
                  type: "Image",
                  props: {
                    y: 29,
                    x: 147,
                    var: "line_bac",
                    skin: "mainPage/Ui_Progress2.png"
                  },
                  compId: 473,
                  child: [{
                    type: "Image",
                    props: {
                      y: 1,
                      x: 4,
                      var: "line_Y",
                      skin: "mainPage/Ui_Progress1.png"
                    },
                    compId: 474
                  }]
                }, {
                  type: "Label",
                  props: {
                    y: 23,
                    x: 41,
                    width: 86,
                    var: "shop_text",
                    text: "10/16",
                    scaleY: .45,
                    scaleX: .45,
                    height: 30,
                    fontSize: 30,
                    font: "level_Z"
                  },
                  compId: 610
                }]
              }, {
                type: "List",
                props: {
                  y: 379,
                  x: 100,
                  width: 544,
                  var: "shop_List0",
                  spaceY: 18,
                  spaceX: 15,
                  height: 683
                },
                compId: 637,
                child: [{
                  type: "Box",
                  props: {
                    width: 169,
                    renderType: "render",
                    height: 233
                  },
                  compId: 638,
                  child: [{
                    type: "Image",
                    props: {
                      skin: "mainPage/Ui_PropFrame.png",
                      name: "shop_bac"
                    },
                    compId: 639
                  }, {
                    type: "Image",
                    props: {
                      y: 0,
                      x: 0,
                      skin: "mainPage/Ui_PropFrame.png",
                      name: "good_img"
                    },
                    compId: 640
                  }, {
                    type: "Image",
                    props: {
                      y: 152,
                      x: 0,
                      skin: "mainPage/Btn_Light.png",
                      name: "btn_img"
                    },
                    compId: 641
                  }, {
                    type: "Label",
                    props: {
                      y: 169,
                      x: 31,
                      width: 66,
                      text: "100",
                      scaleY: .45,
                      scaleX: .45,
                      name: "shop_Price",
                      height: 24,
                      fontSize: 22,
                      font: "level_W"
                    },
                    compId: 643
                  }, {
                    type: "Button",
                    props: {
                      y: 146,
                      x: 0,
                      width: 168,
                      height: 87
                    },
                    compId: 687
                  }, {
                    type: "Image",
                    props: {
                      y: 132,
                      x: 52,
                      skin: "mainPage/Ui_RoleBlack.png"
                    },
                    compId: 690
                  }, {
                    type: "Image",
                    props: {
                      y: 174,
                      x: 110,
                      width: 30,
                      skin: "mainPage/Ui_Coin.png",
                      name: "gold_logo",
                      height: 31
                    },
                    compId: 642
                  }]
                }]
              }, {
                type: "List",
                props: {
                  y: 379,
                  x: 100,
                  width: 544,
                  var: "shop_List1",
                  spaceY: 18,
                  spaceX: 15,
                  height: 683
                },
                compId: 679,
                child: [{
                  type: "Box",
                  props: {
                    width: 169,
                    renderType: "render",
                    height: 233
                  },
                  compId: 680,
                  child: [{
                    type: "Image",
                    props: {
                      y: 0,
                      x: 0,
                      skin: "mainPage/Ui_PropFrame1.png",
                      name: "shop_bac"
                    },
                    compId: 681
                  }, {
                    type: "Image",
                    props: {
                      y: 0,
                      x: 0,
                      skin: "mainPage/Ui_PropFrame.png",
                      name: "good_img"
                    },
                    compId: 682
                  }, {
                    type: "Image",
                    props: {
                      y: 152,
                      x: 0,
                      skin: "mainPage/Btn_Light.png",
                      name: "btn_img"
                    },
                    compId: 683
                  }, {
                    type: "Label",
                    props: {
                      y: 171,
                      x: 31,
                      width: 66,
                      text: "100",
                      scaleY: .4,
                      scaleX: .4,
                      name: "shop_Price",
                      height: 24,
                      fontSize: 22,
                      font: "level_W"
                    },
                    compId: 685
                  }, {
                    type: "Button",
                    props: {
                      y: 146,
                      x: 0,
                      width: 168,
                      height: 87
                    },
                    compId: 686
                  }, {
                    type: "Image",
                    props: {
                      y: 132,
                      x: 52,
                      skin: "mainPage/Ui_RoleBlack.png"
                    },
                    compId: 689
                  }, {
                    type: "Image",
                    props: {
                      y: 174,
                      x: 110,
                      width: 30,
                      skin: "mainPage/Ui_Coin.png",
                      name: "gold_logo",
                      height: 31
                    },
                    compId: 684
                  }]
                }]
              }]
            }, {
              type: "Box",
              props: {
                y: 277,
                x: 83,
                width: 554,
                visible: !1,
                var: "jump_box",
                height: 692
              },
              compId: 462,
              child: [{
                type: "Image",
                props: {
                  y: 2,
                  x: 1,
                  skin: "mainPage/Ui_Frame.png"
                },
                compId: 466
              }, {
                type: "Image",
                props: {
                  y: 82,
                  x: 171,
                  skin: "mainPage/Ui_NewRole.png"
                },
                compId: 467
              }, {
                type: "Image",
                props: {
                  y: 220,
                  x: 181,
                  width: 191,
                  skin: "mainPage/Ui_Frame1.png",
                  height: 191
                },
                compId: 735
              }, {
                type: "Image",
                props: {
                  y: 462,
                  x: 134,
                  var: "jumpConfirm",
                  skin: "mainPage/Btn_Ok2.png"
                },
                compId: 468
              }, {
                type: "Image",
                props: {
                  y: 243,
                  x: 193,
                  var: "role_png",
                  skin: "mainPage/Role1.png"
                },
                compId: 691
              }]
            }, {
              type: "Box",
              props: {
                width: 720,
                visible: !1,
                var: "lose_box"
              },
              compId: 514,
              child: [{
                type: "Image",
                props: {
                  y: 178,
                  x: 104,
                  skin: "mainPage/Ui_TitleFail.png"
                },
                compId: 561
              }, {
                type: "Image",
                props: {
                  y: 416,
                  x: 285,
                  skin: "mainPage/Ui_FailFont.png"
                },
                compId: 542
              }, {
                type: "Image",
                props: {
                  y: 553,
                  x: 283,
                  skin: "mainPage/Ui_Time1.png"
                },
                compId: 543
              }, {
                type: "Image",
                props: {
                  y: 551,
                  x: 279,
                  skin: "mainPage/Ui_Time2.png"
                },
                compId: 544
              }, {
                type: "Image",
                props: {
                  y: 668,
                  x: 473,
                  skin: "mainPage/Ui_TimeRing2.png"
                },
                compId: 545
              }, {
                type: "Label",
                props: {
                  y: 595,
                  x: 331,
                  width: 109,
                  var: "lose_text",
                  text: "2",
                  height: 111,
                  fontSize: 120,
                  font: "level_W",
                  align: "center"
                },
                compId: 546
              }, {
                type: "Image",
                props: {
                  y: 836,
                  x: 211,
                  var: "lose_con",
                  skin: "mainPage/Btn_Continue.png"
                },
                compId: 562
              }]
            }, {
              type: "Box",
              props: {
                y: 0,
                x: 0,
                width: 720,
                visible: !1,
                var: "TZ_box"
              },
              compId: 694,
              child: [{
                type: "Image",
                props: {
                  y: 84,
                  x: 0,
                  skin: "mainPage/Ui_DayBg.png"
                },
                compId: 695
              }, {
                type: "Image",
                props: {
                  y: 511,
                  x: 74,
                  skin: "mainPage/Ui_DayShape1.png"
                },
                compId: 733
              }, {
                type: "Image",
                props: {
                  y: 91,
                  x: 592,
                  var: "TZ_close",
                  skin: "mainPage/Ui_Close.png"
                },
                compId: 734
              }, {
                type: "Label",
                props: {
                  y: 147,
                  x: 125,
                  width: 109,
                  var: "TZ_gold",
                  text: "1234",
                  scaleY: .45,
                  scaleX: .45,
                  pivotX: 109,
                  height: 41,
                  fontSize: 40,
                  font: "level_Z",
                  align: "right"
                },
                compId: 736
              }, {
                type: "Image",
                props: {
                  y: 141,
                  x: 133,
                  skin: "mainPage/Ui_Coin.png"
                },
                compId: 737
              }, {
                type: "Image",
                props: {
                  y: 153,
                  x: 266,
                  skin: "mainPage/Ui_DayTitle.png"
                },
                compId: 738
              }, {
                type: "Box",
                props: {
                  y: 277,
                  x: 86,
                  width: 583,
                  var: "bg_box",
                  height: 108
                },
                compId: 748,
                child: [{
                  type: "Image",
                  props: {
                    y: 0,
                    x: 2,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 751,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 12,
                      var: "medal0",
                      skin: "mainPage/Ui_Medals1.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 762
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock0",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 763
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 0,
                    x: 86,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 752,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 12,
                      var: "medal1",
                      skin: "mainPage/Ui_Medals2.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 776
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock1",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 764
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 0,
                    x: 171,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 753,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 15,
                      var: "medal2",
                      skin: "mainPage/Ui_Medals3.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 777
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock2",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 765
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 0,
                    x: 255,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 754,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 11,
                      var: "medal3",
                      skin: "mainPage/Ui_Medals4.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 778
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock3",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 766
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 1,
                    x: 339,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 755,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 5,
                      var: "medal4",
                      skin: "mainPage/Ui_Medals5.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 779
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock4",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 767
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: -1,
                    x: 423,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 756,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 8,
                      var: "medal5",
                      skin: "mainPage/Ui_Medals6.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 780
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock5",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 768
                  }]
                }, {
                  type: "Image",
                  props: {
                    y: 0,
                    x: 507,
                    skin: "mainPage/Ui_DayShape2.png"
                  },
                  compId: 757,
                  child: [{
                    type: "Image",
                    props: {
                      y: 16,
                      x: 2,
                      var: "medal6",
                      skin: "mainPage/Ui_Medals7.png",
                      scaleY: .7,
                      scaleX: .7,
                      alpha: .7
                    },
                    compId: 781
                  }, {
                    type: "Image",
                    props: {
                      y: 66,
                      x: 41,
                      var: "lock6",
                      skin: "mainPage/Ui_Lock.png"
                    },
                    compId: 769
                  }]
                }]
              }, {
                type: "Image",
                props: {
                  y: 422,
                  x: 113,
                  width: 505,
                  skin: "mainPage/Ui_Progress3.png",
                  height: 78,
                  alpha: 1
                },
                compId: 758,
                child: [{
                  type: "Image",
                  props: {
                    y: 21,
                    x: 149,
                    skin: "mainPage/Ui_Progress2.png"
                  },
                  compId: 759,
                  child: [{
                    type: "Image",
                    props: {
                      y: 1,
                      x: 4,
                      var: "line_Y2",
                      skin: "mainPage/Ui_Progress1.png"
                    },
                    compId: 760
                  }]
                }, {
                  type: "Label",
                  props: {
                    y: 18,
                    x: 47,
                    width: 86,
                    var: "line_Text2",
                    text: "10/16",
                    scaleY: .45,
                    scaleX: .45,
                    height: 30,
                    fontSize: 30,
                    font: "level_Z"
                  },
                  compId: 761
                }]
              }, {
                type: "Box",
                props: {
                  y: 384,
                  x: 102,
                  width: 594,
                  height: 28
                },
                compId: 791,
                child: [{
                  type: "Label",
                  props: {
                    x: 22,
                    width: 109,
                    text: "青铜",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 55,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 782
                }, {
                  type: "Label",
                  props: {
                    x: 132,
                    width: 109,
                    text: "白银",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 109,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 785
                }, {
                  type: "Label",
                  props: {
                    x: 214,
                    width: 109,
                    text: "黄金",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 109,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 786
                }, {
                  type: "Label",
                  props: {
                    x: 299,
                    width: 109,
                    text: "铂金",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 109,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 787
                }, {
                  type: "Label",
                  props: {
                    x: 381,
                    width: 109,
                    text: "钻石",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 109,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 788
                }, {
                  type: "Label",
                  props: {
                    x: 465,
                    width: 109,
                    text: "星耀",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 109,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 789
                }, {
                  type: "Label",
                  props: {
                    x: 550,
                    width: 109,
                    text: "王者",
                    scaleY: .4,
                    scaleX: .4,
                    pivotX: 109,
                    height: 41,
                    fontSize: 40,
                    font: "level_G",
                    align: "center"
                  },
                  compId: 790
                }]
              }, {
                type: "List",
                props: {
                  y: 548,
                  x: 86,
                  width: 563,
                  var: "TZ_list",
                  spaceY: 40,
                  spaceX: 22,
                  repeatY: 10,
                  repeatX: 3,
                  height: 723,
                  elasticEnabled: !0
                },
                compId: 792,
                child: [{
                  type: "Box",
                  props: {
                    y: 0,
                    x: 7,
                    width: 168,
                    renderType: "render",
                    height: 210
                  },
                  compId: 793,
                  child: [{
                    type: "Image",
                    props: {
                      skin: "mainPage/Ui_DayShape3.png",
                      name: "TZ_bac"
                    },
                    compId: 801
                  }, {
                    type: "Image",
                    props: {
                      y: 157,
                      x: 7,
                      skin: "mainPage/Btn_PlayAgain.png",
                      name: "TZ_again"
                    },
                    compId: 802
                  }, {
                    type: "Image",
                    props: {
                      y: 53,
                      x: 58,
                      skin: "mainPage/Ui_Coin.png",
                      name: "gold_icon0"
                    },
                    compId: 803
                  }, {
                    type: "Image",
                    props: {
                      y: 156,
                      x: 58,
                      skin: "mainPage/Ui_Symbol.png",
                      name: "TZ_finish"
                    },
                    compId: 804
                  }, {
                    type: "Label",
                    props: {
                      y: 24,
                      x: 33,
                      width: 251,
                      text: "第一天",
                      scaleY: .35,
                      scaleX: .35,
                      pivotY: 35,
                      name: "day_text",
                      height: 70,
                      fontSize: 40,
                      font: "level",
                      align: "center"
                    },
                    compId: 805
                  }, {
                    type: "Label",
                    props: {
                      y: 135,
                      x: 33,
                      width: 251,
                      text: "100",
                      scaleY: .4,
                      scaleX: .4,
                      pivotY: 35,
                      name: "gold_text0",
                      height: 70,
                      fontSize: 40,
                      font: "level_Z",
                      align: "center"
                    },
                    compId: 806
                  }, {
                    type: "Image",
                    props: {
                      y: 57,
                      x: 22,
                      skin: "mainPage/Ui_Medals1.png",
                      name: "medal_icon"
                    },
                    compId: 807
                  }, {
                    type: "Label",
                    props: {
                      y: 65,
                      x: 115,
                      width: 114,
                      text: "奖牌",
                      scaleY: .25,
                      scaleX: .25,
                      pivotY: 35,
                      name: "gold_text1",
                      height: 57,
                      fontSize: 40,
                      font: "level",
                      align: "center"
                    },
                    compId: 809
                  }, {
                    type: "Label",
                    props: {
                      y: 83.5,
                      x: 115,
                      width: 114,
                      text: "+",
                      scaleY: .25,
                      scaleX: .25,
                      pivotY: 35,
                      name: "gold_text2",
                      height: 57,
                      fontSize: 40,
                      font: "level_Z",
                      align: "center"
                    },
                    compId: 810
                  }, {
                    type: "Label",
                    props: {
                      y: 106.5,
                      x: 116,
                      width: 114,
                      text: "100",
                      scaleY: .25,
                      scaleX: .25,
                      pivotY: 35,
                      name: "gold_text3",
                      height: 57,
                      fontSize: 40,
                      font: "level_Z",
                      align: "center"
                    },
                    compId: 811
                  }, {
                    type: "Image",
                    props: {
                      y: 120,
                      x: 117,
                      width: 27,
                      skin: "mainPage/Ui_Coin.png",
                      name: "gold_icon",
                      height: 28
                    },
                    compId: 812
                  }, {
                    type: "Label",
                    props: {
                      y: 176.5,
                      x: 62,
                      width: 114,
                      text: "开始",
                      scaleY: .4,
                      scaleX: .4,
                      pivotY: 35,
                      name: "gold_text4",
                      height: 57,
                      fontSize: 40,
                      font: "level",
                      align: "center"
                    },
                    compId: 813
                  }, {
                    type: "Button",
                    props: {
                      y: 156,
                      x: 7,
                      width: 154,
                      height: 49
                    },
                    compId: 799
                  }]
                }]
              }, {
                type: "Label",
                props: {
                  y: 242,
                  x: 316,
                  width: 251,
                  text: "你的奖牌",
                  scaleY: .35,
                  scaleX: .35,
                  pivotY: 35,
                  height: 70,
                  fontSize: 40,
                  font: "level",
                  align: "center"
                },
                compId: 814
              }]
            }, {
              type: "Box",
              props: {
                y: 277,
                x: 83,
                width: 554,
                visible: !1,
                var: "jump_boxTZ",
                height: 692
              },
              compId: 815,
              child: [{
                type: "Image",
                props: {
                  y: 2,
                  x: 1,
                  skin: "mainPage/Ui_Frame.png"
                },
                compId: 816
              }, {
                type: "Image",
                props: {
                  y: 462,
                  x: 134,
                  var: "jump_TZClose",
                  skin: "mainPage/Btn_Ok2.png"
                },
                compId: 819
              }, {
                type: "Image",
                props: {
                  y: 92.5,
                  x: 100,
                  skin: "mainPage/Ui_Finish.png"
                },
                compId: 821
              }, {
                type: "Image",
                props: {
                  y: 245,
                  x: 239,
                  skin: "mainPage/Ui_Finish1.png"
                },
                compId: 822
              }]
            }, {
              type: "Box",
              props: {
                y: 152,
                x: 0,
                width: 720,
                visible: !1,
                var: "rankingBox"
              },
              compId: 824,
              child: [{
                type: "Image",
                props: {
                  y: 0,
                  x: 63,
                  skin: "mainPage/Ui_RankBg.png"
                },
                compId: 862
              }, {
                type: "Image",
                props: {
                  y: -12,
                  x: 556,
                  var: "ranking_close",
                  skin: "mainPage/Ui_Close.png"
                },
                compId: 863
              }, {
                type: "Image",
                props: {
                  y: 76,
                  x: 294,
                  skin: "mainPage/Ui_RankTitle.png"
                },
                compId: 864
              }, {
                type: "List",
                props: {
                  y: 142,
                  x: 117,
                  width: 486,
                  var: "rankList",
                  spaceY: 10,
                  spaceX: 0,
                  repeatX: 1,
                  height: 526
                },
                compId: 844,
                child: [{
                  type: "Box",
                  props: {
                    width: 486,
                    renderType: "render",
                    height: 78
                  },
                  compId: 845,
                  child: [{
                    type: "Image",
                    props: {
                      y: 0,
                      x: 0,
                      skin: "mainPage/Ui_RankShape1.png"
                    },
                    compId: 865
                  }, {
                    type: "Label",
                    props: {
                      y: 18,
                      x: 75,
                      width: 109,
                      text: "1",
                      scaleY: .45,
                      scaleX: .45,
                      pivotX: 119,
                      name: "num_text",
                      height: 41,
                      fontSize: 40,
                      font: "level_Z",
                      align: "left"
                    },
                    compId: 870
                  }, {
                    type: "Image",
                    props: {
                      y: 9,
                      x: 80,
                      width: 58,
                      skin: "mainPage/Ui_Medals7.png",
                      name: "head_img",
                      height: 53
                    },
                    compId: 871
                  }, {
                    type: "Label",
                    props: {
                      y: 22,
                      x: 204,
                      width: 109,
                      text: "1",
                      scaleY: .45,
                      scaleX: .45,
                      pivotX: 119,
                      name: "name_text",
                      height: 73,
                      fontSize: 80,
                      font: "SimHei",
                      color: "#452b1f",
                      align: "left"
                    },
                    compId: 872
                  }, {
                    type: "Label",
                    props: {
                      y: 20,
                      x: 433,
                      width: 194,
                      text: "999关",
                      scaleY: .45,
                      scaleX: .45,
                      pivotX: 119,
                      name: "stage_text",
                      height: 82,
                      fontSize: 80,
                      font: "SimHei",
                      color: "#452b1f",
                      align: "right"
                    },
                    compId: 874
                  }]
                }]
              }, {
                type: "Box",
                props: {
                  y: 697,
                  x: 117,
                  width: 486,
                  height: 78
                },
                compId: 867,
                child: [{
                  type: "Image",
                  props: {
                    y: 0,
                    x: 0,
                    skin: "mainPage/Ui_RankShape2.png"
                  },
                  compId: 868
                }, {
                  type: "Label",
                  props: {
                    y: 18,
                    x: 75,
                    width: 109,
                    var: "num_text",
                    text: "1",
                    scaleY: .45,
                    scaleX: .45,
                    pivotX: 119,
                    height: 41,
                    fontSize: 40,
                    font: "level_Z",
                    align: "left"
                  },
                  compId: 875
                }, {
                  type: "Image",
                  props: {
                    y: 12,
                    x: 83,
                    width: 58,
                    var: "head_img",
                    skin: "mainPage/Ui_Medals7.png",
                    height: 53
                  },
                  compId: 876
                }, {
                  type: "Label",
                  props: {
                    y: 22,
                    x: 207,
                    width: 109,
                    var: "name_text",
                    text: "1",
                    scaleY: .45,
                    scaleX: .45,
                    pivotX: 119,
                    height: 75,
                    fontSize: 80,
                    font: "SimHei",
                    color: "#452b1f",
                    align: "left"
                  },
                  compId: 877
                }, {
                  type: "Label",
                  props: {
                    y: 21,
                    x: 430,
                    width: 198,
                    var: "stage_text00",
                    text: "999关",
                    scaleY: .45,
                    scaleX: .45,
                    pivotX: 119,
                    height: 80,
                    fontSize: 80,
                    font: "SimHei",
                    color: "#452b1f",
                    align: "right"
                  },
                  compId: 878
                }]
              }]
            }, {
              type: "Box",
              props: {
                y: 152,
                x: 0,
                width: 720,
                visible: !1,
                var: "Challenge_box"
              },
              compId: 888,
              child: [{
                type: "Image",
                props: {
                  y: 0,
                  x: 63,
                  skin: "mainPage/Ui_RankBg.png"
                },
                compId: 889
              }, {
                type: "Image",
                props: {
                  y: -12,
                  x: 556,
                  var: "DayExit",
                  skin: "mainPage/Ui_Close.png"
                },
                compId: 890
              }, {
                type: "Image",
                props: {
                  y: 76,
                  x: 234,
                  skin: "mainPage/Ui_Reward.png"
                },
                compId: 891
              }, {
                type: "Image",
                props: {
                  y: 233,
                  x: 238.5,
                  width: 265,
                  skin: "mainPage/Ui_DayShape2.png",
                  height: 328
                },
                compId: 905,
                child: [{
                  type: "Image",
                  props: {
                    y: 50,
                    x: 74,
                    skin: "mainPage/Ui_Gold.png"
                  },
                  compId: 906
                }, {
                  type: "Text",
                  props: {
                    y: 205,
                    x: 62,
                    width: 19,
                    var: "Challenge_text",
                    text: "100",
                    height: 20,
                    fontSize: 30,
                    font: "level_W",
                    runtime: "laya.display.Text"
                  },
                  compId: 908
                }]
              }, {
                type: "Image",
                props: {
                  y: 624,
                  x: 225.5,
                  var: "Challenge_box_lin",
                  skin: "mainPage/Btn_Receive.png"
                },
                compId: 907
              }]
            }, {
              type: "Image",
              props: {
                y: 723,
                x: 364,
                width: 695,
                var: "lingque",
                skin: "mainPage/Btn_Hold2.png",
                pivotY: 51,
                pivotX: 348,
                height: 101
              },
              compId: 923
            }]
          }, {
            type: "Image",
            props: {
              zOrder: 5,
              y: 1387,
              x: 0,
              width: 720,
              visible: !1,
              var: "banner_img",
              skin: "mainPage/Frame.png",
              height: 229
            },
            compId: 880,
            child: [{
              type: "Image",
              props: {
                y: 1,
                x: 1,
                width: 704,
                var: "banner_Image_img",
                height: 212
              },
              compId: 883,
              child: [{
                type: "Image",
                props: {
                  y: 24,
                  x: 4,
                  width: 40,
                  name: "banner_logo_Img",
                  height: 40
                },
                compId: 884
              }, {
                type: "Text",
                props: {
                  y: 200,
                  x: 0,
                  var: "banner_desc_text",
                  name: "banner_desc",
                  fontSize: 25,
                  color: "#ffffff",
                  runtime: "laya.display.Text"
                },
                compId: 885
              }, {
                type: "Text",
                props: {
                  y: 1e3,
                  x: 1e3,
                  name: "tempData",
                  runtime: "laya.display.Text"
                },
                compId: 917
              }, {
                type: "Text",
                props: {
                  y: 1e3,
                  x: 1e3,
                  name: "bannerIndex",
                  runtime: "laya.display.Text"
                },
                compId: 919
              }, {
                type: "Text",
                props: {
                  y: 200,
                  x: 625,
                  var: "banner_text",
                  text: "点击查看",
                  fontSize: 20,
                  color: "#ffffff",
                  runtime: "laya.display.Text"
                },
                compId: 921
              }]
            }, {
              type: "Image",
              props: {
                y: 0,
                x: -10,
                var: "banner_ad_img",
                skin: "mainPage/banner_logo.png"
              },
              compId: 881
            }, {
              type: "Image",
              props: {
                zOrder: 6,
                y: 2,
                x: 677,
                width: 40,
                var: "banner_exit_img",
                skin: "mainPage/Btn_Close.png",
                height: 40
              },
              compId: 882
            }]
          }, {
            type: "Image",
            props: {
              zOrder: 5,
              y: 469,
              x: 0,
              width: 720,
              visible: !1,
              var: "bigBanner",
              skin: "mainPage/Frame.png",
              height: 229
            },
            compId: 910,
            child: [{
              type: "Image",
              props: {
                zOrder: 6,
                y: 8.5,
                x: 8,
                width: 704,
                var: "bigBanner_img",
                skin: "mainPage/emptyBanner.png",
                mouseEnabled: !0,
                height: 212
              },
              compId: 911,
              child: [{
                type: "Image",
                props: {
                  y: 30,
                  x: 6,
                  width: 40,
                  name: "banner_logo_Img",
                  height: 40
                },
                compId: 912
              }, {
                type: "Text",
                props: {
                  y: 199,
                  x: 0,
                  var: "bigBanner_desc_text",
                  name: "banner_desc",
                  fontSize: 25,
                  color: "#ffffff",
                  runtime: "laya.display.Text"
                },
                compId: 913
              }, {
                type: "Text",
                props: {
                  y: 999,
                  x: 1e3,
                  name: "tempData",
                  runtime: "laya.display.Text"
                },
                compId: 918
              }, {
                type: "Text",
                props: {
                  y: 999,
                  x: 1e3,
                  name: "bannerIndex",
                  runtime: "laya.display.Text"
                },
                compId: 920
              }, {
                type: "Text",
                props: {
                  y: 200,
                  x: 625,
                  var: "bigbanner_text",
                  text: "点击查看",
                  fontSize: 20,
                  color: "#ffffff",
                  runtime: "laya.display.Text"
                },
                compId: 922
              }]
            }, {
              type: "Image",
              props: {
                y: 0,
                x: -15,
                var: "bigBanner_ad",
                skin: "mainPage/banner_logo.png"
              },
              compId: 914
            }, {
              type: "Image",
              props: {
                zOrder: 6,
                y: 7,
                x: 672,
                width: 40,
                var: "bigBanner_exit",
                skin: "mainPage/Btn_Close.png",
                height: 40
              },
              compId: 915
            }, {
              type: "Image",
              props: {
                y: -510,
                x: 0,
                width: 720,
                var: "Shelter",
                mouseEnabled: !0,
                hitTestPrior: !1,
                height: 2e3
              },
              compId: 924
            }]
          }, {
            type: "Image",
            props: {
              width: 720,
              visible: !1,
              var: "ADBox_img",
              skin: "mainPage/Ui_BgPurple.png",
              height: 2e3
            },
            compId: 925,
            child: [{
              type: "Image",
              props: {
                y: 432,
                x: 119,
                skin: "mainPage/Ui_Light2.png"
              },
              compId: 926,
              child: [{
                type: "Image",
                props: {
                  y: 107,
                  x: 126,
                  skin: "mainPage/Ui_Box1.png"
                },
                compId: 927
              }, {
                type: "Image",
                props: {
                  y: 390,
                  x: 126,
                  skin: "mainPage/Ui_FontProgress.png"
                },
                compId: 928
              }]
            }, {
              type: "ProgressBar",
              props: {
                y: 921,
                x: 223,
                width: 300,
                var: "BoxPress",
                value: 0,
                skin: "mainPage/Ui_BoxProgress1.png",
                height: 35,
                sizeGrid: "0,36,0,25"
              },
              compId: 929
            }, {
              type: "Button",
              props: {
                y: 1062,
                x: 373,
                width: 312,
                var: "BoxButton",
                stateNum: 1,
                skin: "mainPage/Btn_Start3.png",
                scaleY: .7,
                scaleX: .7,
                pivotY: 62,
                pivotX: 156,
                height: 123
              },
              compId: 930
            }, {
              type: "Image",
              props: {
                y: 470,
                x: 119,
                visible: !1,
                var: "BoxGold",
                skin: "mainPage/Ui_BgShop1.png",
                scaleY: .7,
                scaleX: .7
              },
              compId: 931,
              child: [{
                type: "Image",
                props: {
                  y: 220,
                  x: 258,
                  skin: "mainPage/Ui_Earned.png"
                },
                compId: 932
              }, {
                type: "Image",
                props: {
                  y: 434,
                  x: 295,
                  width: 116,
                  skin: "mainPage/Ui_Gold.png",
                  scaleY: .6,
                  scaleX: .6,
                  pivotY: 61,
                  pivotX: 58,
                  height: 122
                },
                compId: 933
              }, {
                type: "Text",
                props: {
                  y: 393,
                  x: 353,
                  text: "100",
                  fontSize: 60,
                  font: "level_Y",
                  runtime: "laya.display.Text"
                },
                compId: 934
              }, {
                type: "Button",
                props: {
                  y: 606,
                  x: 210.5,
                  var: "BoxGoldOK_btn",
                  stateNum: 1,
                  skin: "mainPage/Btn_Ok2.png"
                },
                compId: 935
              }]
            }]
          }],
          animations: [{
            nodes: [{
              target: 617,
              keyframes: {
                scaleY: [{
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "scaleY",
                  index: 0
                }, {
                  value: 1.2,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "scaleY",
                  index: 10
                }],
                scaleX: [{
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "scaleX",
                  index: 0
                }, {
                  value: 1.2,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "scaleX",
                  index: 10
                }],
                alpha: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "alpha",
                  index: 0
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "alpha",
                  index: 10
                }, {
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 617,
                  key: "alpha",
                  index: 20
                }]
              }
            }],
            name: "ani1",
            id: 1,
            frameRate: 24,
            action: 0
          }, {
            nodes: [{
              target: 443,
              keyframes: {
                scaleY: [{
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 443,
                  key: "scaleY",
                  index: 0
                }, {
                  value: 1.02,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 443,
                  key: "scaleY",
                  index: 10
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 443,
                  key: "scaleY",
                  index: 20
                }],
                scaleX: [{
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 443,
                  key: "scaleX",
                  index: 0
                }, {
                  value: 1.05,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 443,
                  key: "scaleX",
                  index: 10
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 443,
                  key: "scaleX",
                  index: 20
                }]
              }
            }],
            name: "ani2",
            id: 2,
            frameRate: 24,
            action: 2
          }, {
            nodes: [],
            name: "ani3",
            id: 3,
            frameRate: 24,
            action: 2
          }, {
            nodes: [],
            name: "ani4",
            id: 4,
            frameRate: 24,
            action: 2
          }, {
            nodes: [],
            name: "ani5",
            id: 5,
            frameRate: 24,
            action: 2
          }, {
            nodes: [{
              target: 446,
              keyframes: {
                scaleY: [{
                  value: .9,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 446,
                  key: "scaleY",
                  index: 0
                }, {
                  value: 1.15,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 446,
                  key: "scaleY",
                  index: 8
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 446,
                  key: "scaleY",
                  index: 12
                }],
                scaleX: [{
                  value: .9,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 446,
                  key: "scaleX",
                  index: 0
                }, {
                  value: 1.15,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 446,
                  key: "scaleX",
                  index: 8
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 446,
                  key: "scaleX",
                  index: 12
                }]
              }
            }],
            name: "ani6",
            id: 6,
            frameRate: 24,
            action: 0
          }, {
            nodes: [{
              target: 923,
              keyframes: {
                scaleY: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleY",
                  index: 0
                }],
                scaleX: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleX",
                  index: 0
                }],
                mouseThrough: [{
                  value: !0,
                  tweenMethod: "linearNone",
                  tween: !1,
                  target: 923,
                  key: "mouseThrough",
                  index: 0
                }],
                mouseEnabled: [{
                  value: !1,
                  tweenMethod: "linearNone",
                  tween: !1,
                  target: 923,
                  key: "mouseEnabled",
                  index: 0
                }]
              }
            }],
            name: "ani9",
            id: 9,
            frameRate: 24,
            action: 0
          }, {
            nodes: [{
              target: 923,
              keyframes: {
                scaleY: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleY",
                  index: 0
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleY",
                  index: 5
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleY",
                  index: 35
                }, {
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleY",
                  index: 40
                }],
                scaleX: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleX",
                  index: 0
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleX",
                  index: 5
                }, {
                  value: 1,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleX",
                  index: 35
                }, {
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 923,
                  key: "scaleX",
                  index: 40
                }]
              }
            }],
            name: "ani10",
            id: 10,
            frameRate: 24,
            action: 0
          }, {
            nodes: [{
              target: 540,
              keyframes: {
                scaleY: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 540,
                  key: "scaleY",
                  index: 0
                }, {
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 540,
                  key: "scaleY",
                  index: 40
                }, {
                  value: .8,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 540,
                  key: "scaleY",
                  index: 50
                }],
                scaleX: [{
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 540,
                  key: "scaleX",
                  index: 0
                }, {
                  value: 0,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 540,
                  key: "scaleX",
                  index: 40
                }, {
                  value: .8,
                  tweenMethod: "linearNone",
                  tween: !0,
                  target: 540,
                  key: "scaleX",
                  index: 50
                }]
              }
            }],
            name: "ani11",
            id: 11,
            frameRate: 24,
            action: 0
          }],
          loadList: ["mainPage/Ui_Setup.png", "mainPage/Ui_Coin.png", "mainPage/Ui_LevelFont.png", "mainPage/Ui_Challenge.png", "mainPage/Ui_Shop.png", "mainPage/Btn_Rank.png", "mainPage/Btn_Hold.png", "mainPage/Btn_Daily reward.png", "mainPage/Ui_LevelRing.png", "mainPage/Ui_Ring.png", "mainPage/Ui_BgPurple.png", "mainPage/Btn_Near.png", "mainPage/Ui_Colour9.png", "mainPage/Ui_Colour1.png", "mainPage/Ui_Colour2.png", "mainPage/Ui_Colour3.png", "mainPage/Ui_Colour4.png", "mainPage/Ui_Colour5.png", "mainPage/Ui_Colour6.png", "mainPage/Ui_Colour7.png", "mainPage/Ui_Colour8.png", "mainPage/Ui_Near.png", "mainPage/Ui_FailFont.png", "mainPage/Ui_Time1.png", "mainPage/Ui_Time2.png", "mainPage/Ui_TimeRing2.png", "mainPage/Ui_BestRank.png", "mainPage/Ui_FontRank.png", "mainPage/Ui_Shape.png", "mainPage/Btn_Again.png", "mainPage/Btn_Giveup.png", "mainPage/Ui_TitleEnd.png", "mainPage/Btn_Next.png", "mainPage/Ui_Earned.png", "mainPage/Btn_Ok2.png", "mainPage/Ui_TitleVictory.png", "mainPage/Ui_Bonus1.png", "mainPage/Ui_Bonus2.png", "mainPage/Ui_VictoryArrow.png", "mainPage/Ui_BonusFonus.png", "mainPage/Btn_Voice.png", "mainPage/Btn_Shock.png", "mainPage/Ui_SetupShape.png", "mainPage/Ui_BgShop2.png", "mainPage/Ui_Black.png", "mainPage/Btn_Role.png", "mainPage/Ui_Stars.png", "mainPage/Btn_Roads.png", "mainPage/Ui_BgShop1.png", "mainPage/Ui_Close.png", "mainPage/Ui_Progress3.png", "mainPage/Ui_Progress2.png", "mainPage/Ui_Progress1.png", "mainPage/Ui_PropFrame.png", "mainPage/Btn_Light.png", "mainPage/Ui_RoleBlack.png", "mainPage/Ui_PropFrame1.png", "mainPage/Ui_Frame.png", "mainPage/Ui_NewRole.png", "mainPage/Ui_Frame1.png", "mainPage/Role1.png", "mainPage/Ui_TitleFail.png", "mainPage/Btn_Continue.png", "mainPage/Ui_DayBg.png", "mainPage/Ui_DayShape1.png", "mainPage/Ui_DayTitle.png", "mainPage/Ui_DayShape2.png", "mainPage/Ui_Medals1.png", "mainPage/Ui_Lock.png", "mainPage/Ui_Medals2.png", "mainPage/Ui_Medals3.png", "mainPage/Ui_Medals4.png", "mainPage/Ui_Medals5.png", "mainPage/Ui_Medals6.png", "mainPage/Ui_Medals7.png", "mainPage/Ui_DayShape3.png", "mainPage/Btn_PlayAgain.png", "mainPage/Ui_Symbol.png", "mainPage/Ui_Finish.png", "mainPage/Ui_Finish1.png", "mainPage/Ui_RankBg.png", "mainPage/Ui_RankTitle.png", "mainPage/Ui_RankShape1.png", "mainPage/Ui_RankShape2.png", "mainPage/Ui_Reward.png", "mainPage/Ui_Gold.png", "mainPage/Btn_Receive.png", "mainPage/Btn_Hold2.png", "mainPage/Frame.png", "mainPage/banner_logo.png", "mainPage/Btn_Close.png", "mainPage/emptyBanner.png", "mainPage/Ui_Light2.png", "mainPage/Ui_Box1.png", "mainPage/Ui_FontProgress.png", "mainPage/Ui_BoxProgress1.png", "mainPage/Btn_Start3.png"],
          loadList3D: []
        },
          e.UpdateDialogUI = i,
          h("game.ui.LayaPlane.UpdateDialogUI", i)
      }(e.LayaPlane || (e.LayaPlane = {}))
    }(e.ui || (e.ui = {}))
  }(l || (l = {}));
  class g extends Laya.Sprite {
    constructor(e) {
      super(),
        this.preName = "player",
        this.miniCar = void 0,
        this.miniCarList = [],
        this.carSpeed = 1.5,
        this.carSpeed2 = 2,
        this.leftNow = !1,
        this.rightNow = !1,
        this.carRotate = -90,
        this.sceneList = [],
        this.wid = 0,
        this.gameStart = !1,
        this.carNumNow = 0,
        this.moveNum = 0,
        this.height = 0,
        this.init(e)
    }
    init (e) {
      window.gameData.carNumberNow = e,
        this.carRefresh(),
        this.sceneList = window.gameData.sceneList,
        window.eventDis.addEvntListener("carChange", this, this.carRefresh),
        window.eventDis.addEvntListener("PlayerMove", this, this.PlayerMoveFun),
        window.eventDis.addEvntListener("GameOver", this, this.PlayerMove),
        window.eventDis.addEvntListener("PlayerChange", this, this.carRefresh)
    }
    carRefresh () {
      if (null != this.miniCar) {
        var e = this.miniCar;
        window.NodeManage.scenes2.removeChild(this.miniCar),
          e.destroy()
      }
      this.carNumNow = window.gameData.carNumberNow,
        this.miniCar = window.EffectManager.bitchList[this.carNumNow].clone(),
        this.miniCar.transform.position = new Laya.Vector3(0, 0, 2.4),
        this.miniCar.transform.rotate(new Laya.Vector3(0, 180, 0), !1, !1),
        window.NodeManage.scenes2.addChild(this.miniCar),
        window.gameData.miniCar = this.miniCar
    }
    cameraTest () {
      var e = this.miniCar;
      window.NodeManage.camera.transform.position = new Laya.Vector3(e.transform.position.x, e.transform.position.y + 1, e.transform.position.z + 1.1);
      e.transform.position.x;
      var t = e.transform.position.z
        , a = window.gameData.posNow
        , i = [0, 0];
      if (t - a[1] <= -17 && (i[1] = -20),
        t - a[1] >= 20 && (i[1] = 20),
        this.sceneList = window.gameData.sceneList,
        0 != i[0] || 0 != i[1])
        for (var o = 0; o < this.sceneList.length; o++) {
          this.sceneList[o].transform.translate(new Laya.Vector3(i[0], 0, i[1]))
        }
      window.gameData.posNow = [a[0] + i[0], a[1] + i[1]]
    }
    PlayerMoveFun () {
      this.moveNum = 0,
        window.gameData.playerMove = !0,
        window.gameData.shootNow = !1,
        Laya.timer.frameLoop(1, this, this.moveFunStage)
    }
    moveFunStage () {
      this.moveNum += 1,
        this.moveNum > 100 ? (Laya.timer.clear(this, this.moveFunStage),
          this.moveNum = 0,
          window.gameData.playerMove = !1) : this.miniCar.transform.rotate(new Laya.Vector3(0, 3.6, 0), !1, !1)
    }
    PlayerMove () {
      this.moveNum = 0,
        window.gameData.playerMove = !0,
        window.gameData.shootNow = !1,
        Laya.timer.frameLoop(1, this, this.moveFun)
    }
    moveFun () {
      this.moveNum += 1,
        this.moveNum > 100 ? (Laya.timer.clear(this, this.moveFun),
          this.moveNum = 0,
          window.gameData.playerMove = !1) : (50 == this.moveNum && window.monsterManage.enemy.carRemove(),
            this.miniCar.transform.rotate(new Laya.Vector3(0, 3.6, 0), !1, !1))
    }
    destroy () {
      Laya.Tween.clearAll(this),
        Laya.timer.clearAll(this),
        this.body && (this.body.removeChildren(),
          this.body.removeSelf(),
          delete this.body),
        window.eventDis.delAllEvnt(this),
        this.removeChildren(),
        this.removeSelf()
    }
  }
  function __awaiter (e, t, a, i) {
    return new (a || (a = Promise))(function (o, n) {
      function fulfilled (e) {
        try {
          step(i.next(e))
        } catch (e) {
          n(e)
        }
      }
      function rejected (e) {
        try {
          step(i.throw(e))
        } catch (e) {
          n(e)
        }
      }
      function step (e) {
        e.done ? o(e.value) : new a(function (t) {
          t(e.value)
        }
        ).then(fulfilled, rejected)
      }
      step((i = i.apply(e, t || [])).next())
    }
    )
  }
  class d {
    constructor() {
      this.insertID = 0,
        this.bannerID = 0,
        this.insertIDList = ["111060", "111061"],
        this.bannerIDList = ["111059", "111061", "111058"]
    }
    static getInstance () {
      if (null == this.Instance && (this.Instance = new d,
        window.qg)) {
        qg.initAdService({
          appId: "30154192",
          isDebug: !0,
          success: function (e) {
            console.log("success")
          },
          fail: function (e) {
            console.log("fail:" + e.code + e.msg)
          },
          complete: function (e) {
            console.log("complete")
          }
        })
      }
      return this.Instance
    }
    initParam (e) {
      this.banner = e[0],
        this.bannerImg = e[1],
        this.insert = e[2],
        this.insertImg = e[3],
        console.log(this.insertImg),
        this.bannerLogo = this.bannerImg.getChildByName("banner_logo_Img"),
        this.insertLogo = this.insertImg.getChildByName("banner_logo_Img"),
        this.onBannerShow(),
        Laya.timer.loop(1e4, this, this.onBannerShow)
    }
    videoLoad (e) {
      var t = qg.createRewardedVideoAd({
        posId: "111056"
      });
      t.load(),
        t.onLoad(function () {
          console.log("激励视频加载成功"),
            t.show()
        }),
        t.onError(function (e) {
          console.log(e),
            window.qg.showToast({
              title: "请稍后再试",
              icon: "success",
              duration: 2e3
            })
        }),
        t.onClose(t => {
          t.isEnded ? (console.log("激励视频广告完成，发放奖励"),
            e.run()) : console.log("激励视频广告取消关闭，不发放奖励")
        }
        )
    }
    randomNum (e, t) {
      return Math.floor(Math.random() * (t - e + 1) + e)
    }
    onInsertShow () {
      if (!(this.randomNum(0, 100) >= window.gameData.bigBanner)) {
        var e = this;
        this.LoadInsert().then(function (t) {
          t ? (e.insertData = t,
            e.onReportInsertShow(),
            console.log("显示插屏"),
            e.insert.visible = !0,
            e.insertImg.skin = e.insertData.adList[0].imgUrlList[0].length > 0 ? e.insertData.adList[0].imgUrlList[0] : "mainPage/emptyBanner.png",
            e.insertLogo.skin = e.insertData.adList[0].iconUrlList[0]) : (e.insertID = 0,
              e.insertData = [],
              e.insert.visible = !1,
              console.log("传统插屏"),
              e.insertAd = qg.createInsertAd({
                posId: "114353"
              }),
              e.insertAd.load(),
              e.insertAd.onLoad(function () {
                e.insertAd.show()
              }),
              e.insertAd.onShow(function () {
                console.log("插屏广告展示")
              }),
              e.insertAd.onError(function (e) {
                console.log(e)
              }))
        })
      }
    }
    onBannerShow () {
      if (window.qg) {
        var e = this;
        this.LoadBanner().then(function (t) {
          t ? (e.bannerData = t,
            e.onReportBannerShow(),
            console.log(e.bannerData),
            e.bannerAd && e.bannerAd.hide(),
            console.log("显示banner"),
            e.banner.visible = !0,
            e.bannerImg.skin = e.bannerData.adList[0].imgUrlList.length > 0 ? e.bannerData.adList[0].imgUrlList[0] : "mainPage/emptyBanner.png",
            e.bannerLogo.skin = e.bannerData.adList[0].iconUrlList[0]) : (e.bannerID = 0,
              e.bannerData = [],
              e.banner.visible = !1,
              e.bannerAd = qg.createBannerAd({
                posId: "114354"
              }),
              e.bannerAd.show(),
              e.bannerAd.onShow(function () {
                console.log("banner 广告显示")
              }),
              e.bannerAd.onHide(function () {
                console.log("banner 广告隐藏")
              }))
        })
      }
    }
    onReportInsertShow () {
      0 != this.insertID && this.onReportAdShow(qg.createNativeAd({
        posId: this.insertIDList[this.insertID - 1]
      }), this.insertData.adList[0].adId)
    }
    onReportInsertClick () {
      0 != this.insertID && (this.onReportAdClick(qg.createNativeAd({
        posId: this.insertIDList[this.insertID - 1]
      }), this.insertData.adList[0].adId),
        this.insert.visible = !1,
        this.insertID = 0)
    }
    onReportBannerShow () {
      0 != this.bannerID && this.onReportAdShow(qg.createNativeAd({
        posId: this.bannerIDList[this.bannerID - 1]
      }), this.bannerData.adList[0].adId)
    }
    onReportBannerClick () {
      0 != this.bannerID && (this.onReportAdClick(qg.createNativeAd({
        posId: this.bannerIDList[this.bannerID - 1]
      }), this.bannerData.adList[0].adId),
        this.banner.visible = !1,
        this.bannerID = 0)
    }
    onReportAdShow (e, t) {
      e.reportAdShow({
        adId: t
      })
    }
    onReportAdClick (e, t) {
      e.reportAdClick({
        adId: t
      })
    }
    LoadInsert () {
      return __awaiter(this, void 0, void 0, function* () {
        for (var e = void 0, t = 0; t < this.insertIDList.length; t++)
          try {
            if (e = yield this.onLoadAdData(qg.createNativeAd({
              posId: this.insertIDList[t]
            })),
              console.log(e),
              e && e.adList)
              return this.insertID = t + 1,
                e
          } catch (e) {
            console.log(e)
          }
        return new Promise((e, t) => {
          e(null)
        }
        )
      })
    }
    LoadBanner () {
      return __awaiter(this, void 0, void 0, function* () {
        for (var e = void 0, t = 0; t < this.bannerIDList.length; t++)
          try {
            if ((e = yield this.onLoadAdData(qg.createNativeAd({
              posId: this.bannerIDList[t]
            }))) && e.adList)
              return this.bannerID = t + 1,
                e
          } catch (e) {
            console.log(e)
          }
        return new Promise((e, t) => {
          e(null)
        }
        )
      })
    }
    onLoadAdData (e) {
      return new Promise((t, a) => {
        e.load(),
          e.onLoad(function (e) {
            t(e)
          }),
          e.onError(function (e) {
            a(e)
          })
      }
      )
    }
  }
  class p extends l.ui.LayaPlane.UpdateDialogUI {
    constructor() {
      super(),
        this.sceneList = [],
        this.gameStart = !1,
        this.carSpeed = 1.5,
        this.carSpeed2 = 2,
        this.carNumberNow = 0,
        this.carNumberNow2 = 0,
        this.sceneNum = 0,
        this.leftNow = !1,
        this.rightNow = !1,
        this.timeMove = !1,
        this.carRotate = -90,
        this.shockNum = 0,
        this.playerNode = void 0,
        this.goldNow = 0,
        this.MaxScore = 0,
        this.roleStatNow1 = "100000000",
        this.roleStatNow2 = "100000000",
        this.TZStatNow = "000000000000000000000000000000",
        this.TZDay = 0,
        this.TZDayNow = 0,
        this.goldMax = 0,
        this.goldNum = 0,
        this.mouseXNow = 0,
        this.mouseYNow = 0,
        this.smallStage = 0,
        this.settingOpen = !1,
        this.otherOpen = !1,
        this.dangerNow = !1,
        this.settingUI = void 0,
        this.goldList0 = [500, 500, 750, 750, 1e3, 1250, 1250, 1500, 1500],
        this.goldList1 = [250, 500, 500, 750, 1250, 1750, 1750, 2500, 2500],
        this.goldListTZ = [100, 150, 200, 250, 300, 300, 350, 350, 400, 400, 500, 500, 500, 600, 600, 700, 700, 700, 800, 800, 800, 900, 900, 900, 900, 1e3, 1e3, 1e3, 1e3, 1e3],
        this.dayArr = ["第一天", "第二天", "第三天", "第四天", "第五天", "第六天", "第七天", "第八天", "第九天", "第十天", "第十一天", "第十二天", "第十三天", "第十四天", "第十五天", "第十六天", "第十七天", "第十八天", "第十九天", "第二十天", "第二十一天", "第二十二天", "第二十三天", "第二十四天", "第二十五天", "第二十六天", "第二十七天", "第二十八天", "第二十九天", "第三十天"],
        this.iconListTZ = [2, 4, 6, 9, 13, 19, 29],
        this.adBox_num = 0,
        this.handler = new Laya.Handler(this, this.Onclose),
        this.box_dialog.height = Laya.stage.height,
        this.initparam()
    }
    initparam () {
      this.initMiniCarTest()
    }
    initMiniCarTest () {
      Laya.timer.once(500, this, function () {
        window.qg && window.gameData.loadOnce && (window.gameData.loadOnce = !1,
          qg.loadingComplete({
            complete: function (e) { }
          }))
      }),
        d.getInstance().initParam([this.banner_img, this.banner_Image_img, this.bigBanner, this.bigBanner_img]),
        this.banner_img.width = Laya.stage.width,
        this.banner_img.height = 130,
        this.banner_img.x = 0,
        this.banner_img.y = Laya.stage.height - this.banner_img.height,
        this.banner_Image_img.width = this.banner_img.width - 1,
        this.banner_Image_img.height = 130,
        this.banner_desc_text.x = 0,
        this.banner_desc_text.y = this.banner_Image_img.height - 45,
        this.banner_text.x = Laya.stage.width - 100,
        this.banner_text.y = this.banner_desc_text.y,
        this.bigBanner.width = Laya.stage.width,
        this.bigBanner.height = 360,
        this.bigBanner.x = 0,
        this.bigBanner.y = Laya.stage.height / 2,
        this.bigBanner_img.width = this.banner_img.width - 1,
        this.bigBanner_img.height = 360,
        this.bigBanner_desc_text.x = 0,
        this.bigBanner_desc_text.y = this.bigBanner_img.height - 45,
        this.bigbanner_text.x = Laya.stage.width - 100,
        this.bigbanner_text.y = this.bigBanner_desc_text.y,
        window.qg || (this.banner_img.visible = !1,
          this.bigBanner.visible = !1),
        window.gameData.dayGoldIndex > 3 && (this.Challenge_img.visible = !1),
        this.ani9.play(1, !1),
        this.initMiniCar(),
        this.BoxPress.value = 0;
      var e = this;
      window.eventDis.addEvntListener("BoxButtonClick", this, function (t) {
        e.BoxPress.value += Number(t),
          console.log(e.BoxPress.value),
          e.BoxPress.value >= .9 && (e.BoxGold.visible = !0)
      }),
        this.BoxButton.on(Laya.Event.CLICK, this, function () {
          window.eventDis.dispatchEvent("BoxButtonClick", [1 / e.adBox_num])
        }),
        this.BoxGoldOK_btn.on(Laya.Event.CLICK, this, this.onOpenGameLose)
    }
    onOpenGameLose () {
      window.gameData.goldNow += 100,
        localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
        this.BoxGold.visible = !1,
        this.ADBox_img.visible = !1,
        this.doGameLose()
    }
    doLosegain () {
      this.start_box.visible = !1,
        this.over_box.visible = !1,
        this.over_box1.visible = !1,
        this.bac_pop.visible = !1,
        this.fight_box.visible = !0,
        this.stage_box.visible = !0,
        this.otherOpen = !1,
        this.timeMove = !1,
        window.gameData.shootNow = !1,
        window.gameData.gameOver = !1,
        window.eventDis.dispatchEvent("GameRelife")
    }
    doGoldgain () {
      this.start_box.visible = !0,
        this.over_box.visible = !1,
        this.overBox2.visible = !1,
        this.bac_pop.visible = !1,
        window.gameData.shootNow = !1,
        window.gameData.gameOver = !1,
        window.eventDis.dispatchEvent("GameStart"),
        window.eventDis.gameStart(),
        this.start_box.visible = !1,
        this.fight_box.visible = !0,
        this.stage_box.visible = !0
    }
    dolose_con () {
      this.start_box.visible = !1,
        this.lose_box.visible = !1,
        this.otherOpen = !1,
        this.bac_pop.visible = !1,
        this.fight_box.visible = !0,
        this.stage_box.visible = !0,
        this.timeMove = !1,
        window.gameData.shootNow = !1,
        window.gameData.gameOver = !1,
        window.eventDis.dispatchEvent("GameRelife")
    }
    initMiniCar () {
      this.Challenge_text.text = (100 * window.gameData.dayGoldIndex).toString(),
        this.carNumberNow = window.gameData.carNumberNow,
        this.TZStatNow = window.gameData.TZStatNow,
        this.TZDay = window.gameData.TZDay,
        this.TZDayNow = window.gameData.TZDay,
        this.goldNow = window.gameData.goldNow,
        this.roleStatNow1 = window.gameData.roleStatNow1,
        this.roleStatNow2 = window.gameData.roleStatNow2,
        this.MaxScore = window.gameData.MaxScore,
        this.gold_text.text = this.goldNow + "",
        this.fight_gold.text = this.goldNow + "",
        this.stage_text.text = window.gameData.enemyNum + "",
        this.fight_stage.text = window.gameData.enemyNum + "",
        this.scene3 = window.EffectManager.GroundList[0].clone(),
        window.NodeManage.scenes2.fogColor = new Laya.Vector3(.4, .5, .7),
        window.NodeManage.camera.clearColor = new Laya.Vector3(.4, .5, .7),
        window.NodeManage.light.color = new Laya.Vector3(.92, .88, 1),
        window.NodeManage.light.intensity = 1.3,
        this.carNumberNow2 = window.gameData.carNumberNow2,
        this.scene5 = window.EffectManager.ConduitList[window.gameData.carNumberNow2].clone(),
        this.initNM();
      Laya.stage.height;
      window.gameData.shockOpen ? this.setting_close1.visible = !1 : this.setting_close1.visible = !0,
        window.gameData.MusicOpen ? this.setting_close0.visible = !1 : this.setting_close0.visible = !0,
        this.gameStart = !0,
        this.sceneList.push(this.scene3),
        this.sceneList.push(this.scene5),
        window.NodeManage.scenes2.addChild(this.scene3),
        window.NodeManage.scenes2.addChild(this.scene5),
        window.gameData.sceneList = this.sceneList,
        this.start_box.visible = !0,
        this.stage_box.visible = !1,
        this.playerNode = new g(this.carNumberNow),
        this.initshadow(),
        window.gameData.gameOver = !1,
        window.eventDis.dispatchEvent("GameStart"),
        window.eventDis.gameStart(),
        this.box_dialog.on(Laya.Event.MOUSE_DOWN, this, function () {
          0 == this.shopping_box.visible && 0 == this.settingOpen && !this.otherOpen && window.gameData.monReady && (0 == this.start_box.visible && 0 == this.over_box.visible ? window.gameData.shootNow = !0 : 1 == this.start_box.visible && (window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.start_box.visible = !1,
            window.gameData.TZNow || (this.fight_stage.visible = !0,
              this.fight_sta.visible = !0,
              this.stage_te.visible = !0,
              this.stage_text.visible = !0,
              this.score_text.visible = !0),
            this.fight_box.visible = !0,
            this.stage_box.visible = !0,
            window.gameData.shootNow = !0))
        }),
        this.box_dialog.on(Laya.Event.MOUSE_UP, this, function () {
          window.gameData.shootNow = !1
        }),
        this.banner_img.on(Laya.Event.CLICK, this, function () {
          d.getInstance().onReportBannerClick(),
            console.log("点击广告")
        }),
        this.banner_exit_img.on(Laya.Event.CLICK, this, function () {
          this.banner_img.visible = !1,
            console.log("点击关闭banner")
        }),
        this.bigBanner_img.on(Laya.Event.CLICK, this, function () {
          console.log("插屏点击"),
            d.getInstance().onReportInsertClick()
        }),
        this.bigBanner_exit.on(Laya.Event.CLICK, this, function () {
          this.bigBanner.visible = !1,
            console.log("点击关闭insert")
        }),
        this.shopBtn.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            d.getInstance().onInsertShow(),
            d.getInstance().onBannerShow(),
            this.starBox_L.visible = !0,
            this.shop_black0.visible = !1,
            this.shop_black1.visible = !0,
            this.starBox_R.visible = !1,
            this.shop_List0.visible = !0,
            this.shop_List1.visible = !1,
            this.shopRefresh(),
            this.shopping_box.visible = !0,
            this.otherOpen = !0,
            this.bac_pop.visible = !0
        }),
        this.shopBtn_L.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.starBox_L.visible = !0,
            this.shop_black0.visible = !1,
            this.shop_black1.visible = !0,
            this.starBox_R.visible = !1,
            this.shop_List0.visible = !0,
            this.shop_List1.visible = !1;
          var e = 0;
          for (let t = 0; t < this.roleStatNow1.length; t++) {
            "1" == this.roleStatNow1[t] && (e += 1)
          }
          this.shop_text.text = e + "/9",
            this.line_Y.width = 34.5 * e
        }),
        this.nm_box.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.nmStart()
        }),
        this.Challenge_img.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.Challenge_box.visible = !0
        }),
        this.DayExit.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.Challenge_box.visible = !1
        }),
        this.shopBtn_R.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.starBox_R.visible = !0,
            this.starBox_L.visible = !1,
            this.shop_black1.visible = !1,
            this.shop_black0.visible = !0,
            this.shop_List0.visible = !1,
            this.shop_List1.visible = !0;
          var e = 0;
          for (let t = 0; t < this.roleStatNow2.length; t++) {
            "1" == this.roleStatNow2[t] && (e += 1)
          }
          this.shop_text.text = e + "/9",
            this.line_Y.width = 34.5 * e
        }),
        this.shop_close.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.shopping_box.visible = !1,
            this.otherOpen = !1,
            this.bac_pop.visible = !1
        }),
        this.shop_close.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.shopping_box.visible = !1,
            this.otherOpen = !1,
            this.bac_pop.visible = !1
        }),
        this.Setting_btn.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1);
          this.settingOpen ? (this.settingOpen = !1,
            this.setting_box.visible = !1) : (this.settingOpen = !0,
              this.setting_box.visible = !0)
        }),
        window.eventDis.addEvntListener("GameOver", this, this.GameOver),
        window.eventDis.addEvntListener("GameLose", this, this.GameLose),
        window.eventDis.addEvntListener("shadowRefresh", this, this.shadowRefresh),
        window.eventDis.addEvntListener("nmADD", this, this.nmADD),
        Laya.timer.once(1e3, this, function () {
          window.gameData.playMusic("res/sound/Audio_BGM.mp3", 0)
        }),
        this.settingicon0.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            window.gameData.MusicOpen ? (window.gameData.MusicOpen = !1,
              window.gameData.stopMusic(),
              this.setting_close0.visible = !0) : (window.gameData.MusicOpen = !0,
                window.gameData.startMusic(),
                this.setting_close0.visible = !1)
        }),
        this.challenge.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            d.getInstance().onInsertShow(),
            d.getInstance().onBannerShow(),
            this.TZ_gold.text = this.goldNow + "",
            this.TZ_box.visible = !0,
            this.otherOpen = !0,
            this.bac_pop.visible = !0
        }),
        this.TZ_close.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.TZ_gold.text = this.goldNow + "",
            this.TZ_box.visible = !1,
            this.otherOpen = !1,
            this.bac_pop.visible = !1
        }),
        this.rankBtn.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            d.getInstance().onInsertShow(),
            d.getInstance().onBannerShow(),
            this.otherOpen = !0,
            this.bac_pop.visible = !0,
            window.HttpManager.connect(window.HttpManager.getEventRankHttpUrl(), e => {
              0 === e.ret && (this.initRankList(e),
                this.rankingBox.visible = !0)
            }
            )
        }),
        this.ranking_close.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.rankingBox.visible = !1,
            this.otherOpen = !1,
            this.bac_pop.visible = !1
        }),
        this.jump_TZClose.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.jump_boxTZ.visible = !1
        }),
        this.settingicon1.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            window.gameData.shockOpen ? (window.gameData.shockOpen = !1,
              localStorage.setItem("shockTY", "0"),
              this.setting_close1.visible = !0) : (window.gameData.shockOpen = !0,
                localStorage.setItem("shockTY", "1"),
                this.setting_close1.visible = !1)
        }),
        this.loseforgive.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            d.getInstance().onInsertShow(),
            d.getInstance().onBannerShow(),
            this.start_box.visible = !0,
            this.over_box.visible = !1,
            this.stage_box.visible = !1,
            this.otherOpen = !1,
            this.over_box1.visible = !1,
            this.bac_pop.visible = !1,
            this.stage_point1.visible = !1,
            this.stage_point2.visible = !1,
            this.timeMove = !1,
            window.gameData.shootNow = !1,
            window.gameData.gameOver = !1,
            window.eventDis.dispatchEvent("GameStart"),
            window.eventDis.gameStart(),
            window.gameData.nmNow = 0,
            window.gameData.ScoreNow = 0,
            this.nmImg0.visible = !1,
            this.nmImg1.visible = !1,
            this.nmImg2.visible = !1,
            this.nmImg3.visible = !1,
            this.nmImg4.visible = !1,
            this.nmImg5.visible = !1,
            this.nmImg6.visible = !1,
            this.nmImg7.visible = !1,
            this.smallStage = 0,
            this.initNM()
        }),
        this.loseAgain.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            console.log("再来一局");
          var e = Laya.Handler.create(this, this.doLosegain);
          d.getInstance().videoLoad(e)
        }),
        this.overBox2Con.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.start_box.visible = !0,
            this.over_box.visible = !1,
            this.stage_box.visible = !1,
            this.over_box1.visible = !1,
            this.stage_point1.visible = !1,
            this.stage_point2.visible = !1,
            this.bac_pop.visible = !1,
            window.gameData.shootNow = !1,
            window.gameData.gameOver = !1,
            window.gameData.TZNow = !1,
            window.eventDis.dispatchEvent("GameStart"),
            window.eventDis.gameStart(),
            window.gameData.nmNow = 0,
            window.gameData.ScoreNow = 0,
            this.nmImg0.visible = !1,
            this.nmImg1.visible = !1,
            this.nmImg2.visible = !1,
            this.nmImg3.visible = !1,
            this.nmImg4.visible = !1,
            this.nmImg5.visible = !1,
            this.nmImg6.visible = !1,
            this.nmImg7.visible = !1,
            this.smallStage = 0,
            this.initNM()
        }),
        this.Challenge_box_lin.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1);
          var e = this;
          if (1 == window.gameData.dayGoldIndex) {
            if (window.gameData.goldNow += 100 * window.gameData.dayGoldIndex,
              localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
              window.gameData.dayGoldIndex++,
              window.gameData.saveDayGold(),
              window.gameData.dayGoldIndex > 3)
              return void (e.Challenge_img.visible = !1);
            this.Challenge_box_lin.skin = "mainPage/Btn_Receive2.png",
              this.Challenge_box.visible = !1,
              this.ani10.play(1, !1),
              e.Challenge_text.text = (100 * window.gameData.dayGoldIndex).toString()
          } else {
            var t = Laya.Handler.create(this, function () {
              if (window.gameData.goldNow += 100 * window.gameData.dayGoldIndex,
                localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
                window.gameData.dayGoldIndex++,
                window.gameData.saveDayGold(),
                window.gameData.dayGoldIndex > 3)
                return e.Challenge_img.visible = !1,
                  void (this.Challenge_box.visible = !1);
              this.Challenge_box.visible = !1,
                this.ani10.play(1, !1),
                e.Challenge_text.text = (100 * window.gameData.dayGoldIndex).toString()
            });
            d.getInstance().videoLoad(t)
          }
        }),
        this.goldAgain.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            console.log("再来一局");
          var e = Laya.Handler.create(this, this.doGoldgain);
          d.getInstance().videoLoad(e)
        }),
        this.Setting_btn.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.nm_box.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.shopBtn.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.Shelter.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.Challenge_box_lin.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.DayExit.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.banner_img.on(Laya.Event.CLICK, this, e => {
          e.stopPropagation()
        }
        ),
        this.banner_exit_img.on(Laya.Event.CLICK, this, e => {
          e.stopPropagation()
        }
        ),
        this.bigBanner_img.on(Laya.Event.CLICK, this, e => {
          e.stopPropagation()
        }
        ),
        this.bigBanner_exit.on(Laya.Event.CLICK, this, e => {
          e.stopPropagation()
        }
        ),
        this.Challenge_img.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.bigBanner.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.challenge.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.rankBtn.on(Laya.Event.MOUSE_DOWN, this, e => {
          e.stopPropagation()
        }
        ),
        this.jumpConfirm.on(Laya.Event.CLICK, this, e => {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1),
            this.jump_box.visible = !1
        }
        ),
        this.stageNext.on(Laya.Event.CLICK, this, this.newGameStart),
        this.lose_con.on(Laya.Event.CLICK, this, function () {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1);
          var e = Laya.Handler.create(this, this.dolose_con);
          d.getInstance().videoLoad(e)
        }),
        Laya.timer.loop(100, this, this.goldChange),
        this.shop_List1.mouseHandler = new Laya.Handler(this, this.changeBody),
        this.shop_List0.mouseHandler = new Laya.Handler(this, this.changeHead),
        this.TZ_list.mouseHandler = new Laya.Handler(this, this.TZChange),
        this.initTZ(),
        console.log(this.bigBanner_img.visible)
    }
    initTZ () {
      var e = this.TZDay;
      for (let e = 0; e < this.iconListTZ.length; e++) {
        const t = this.iconListTZ[e];
        if ("1" == this.TZStatNow[t])
          switch (e) {
            case 0:
              this.medal0.alpha = 1,
                this.lock0.visible = !1;
              break;
            case 1:
              this.medal1.alpha = 1,
                this.lock1.visible = !1;
              break;
            case 2:
              this.medal2.alpha = 1,
                this.lock2.visible = !1;
              break;
            case 3:
              this.medal3.alpha = 1,
                this.lock3.visible = !1;
              break;
            case 4:
              this.medal4.alpha = 1,
                this.lock4.visible = !1;
              break;
            case 5:
              this.medal5.alpha = 1,
                this.lock5.visible = !1;
              break;
            case 6:
              this.medal6.alpha = 1,
                this.lock6.visible = !1
          }
      }
      var t = []
        , a = 0;
      for (let n = 0; n < 30; n++) {
        var i = this.TZStatNow[n]
          , o = {
            TZ_bac: {
              skin: "mainPage/Ui_DayShape3.png"
            },
            TZ_again: {
              visible: !1
            },
            gold_icon0: {
              visible: !0
            },
            TZ_finish: {
              visible: !1
            },
            gold_text1: {
              visible: !1
            },
            gold_icon: {
              visible: !1
            },
            gold_text2: {
              visible: !1
            },
            gold_text4: {
              visible: !1
            },
            gold_text3: {
              visible: !1,
              text: this.goldListTZ[n]
            },
            day_text: {
              text: this.dayArr[n]
            },
            gold_text0: {
              text: this.goldListTZ[n],
              visible: !0
            },
            medal_icon: {
              skin: "mainPage/Ui_Medals1.png",
              visible: !1
            }
          };
        "1" == i ? (o.TZ_finish = {
          visible: !0
        },
          a += 1) : n < e ? o.TZ_again = {
            visible: !0
          } : (n == e && (o.TZ_bac.skin = "mainPage/Ui_DayShape4.png"),
            o.gold_text4 = {
              visible: !0
            }),
          t.push(o)
      }
      for (let e = 0; e < this.iconListTZ.length; e++) {
        var n = t[this.iconListTZ[e]];
        switch (n.gold_text0.visible = !1,
        n.gold_text1.visible = !0,
        n.gold_text2.visible = !0,
        n.gold_text3.visible = !0,
        n.gold_icon.visible = !0,
        n.gold_icon0.visible = !1,
        e) {
          case 0:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals1.png",
              visible: !0
            };
            break;
          case 1:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals2.png",
              visible: !0
            };
            break;
          case 2:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals3.png",
              visible: !0
            };
            break;
          case 3:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals4.png",
              visible: !0
            };
            break;
          case 4:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals5.png",
              visible: !0
            };
            break;
          case 5:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals6.png",
              visible: !0
            };
            break;
          case 6:
            n.medal_icon = {
              skin: "mainPage/Ui_Medals7.png",
              visible: !0
            }
        }
      }
      this.TZ_list.array = t,
        this.TZ_list.vScrollBarSkin = "",
        this.line_Text2.text = a + "/30",
        this.line_Y2.width = 11.3 * a
    }
    initRankList (e) {
      var t = e.rank
        , a = e.self
        , i = "999"
        , o = [];
      for (let e = 0; e < t.length; e++) {
        const s = t[e];
        s.id == a.id && (i = e + 1 + "");
        var n = {
          num_text: {
            text: e + 1
          },
          head_img: {
            skin: s.url
          },
          name_text: {
            text: s.name
          },
          stage_text: {
            text: s.point + "关"
          }
        };
        o.push(n)
      }
      this.rankList.array = o,
        this.rankList.vScrollBarSkin = "",
        this.num_text.text = i,
        this.head_img.skin = a.url,
        this.name_text.text = a.name,
        this.stage_text00.text = a.point + "关"
    }
    TZChange (e = null, t) {
      if ("click" == e.type && e.target instanceof Laya.Button) {
        window.gameData.playSound("res/sound/Audio_button.mp3", 1);
        var a = this.TZDay;
        if ("1" != this.TZStatNow[t])
          if (t > a)
            this.jump_boxTZ.visible = !0;
          else if (t == a)
            this.startTZ(t);
          else {
            console.log("再来一局");
            var i = Laya.Handler.create(this, function () {
              this.startTZ(t)
            });
            d.getInstance().videoLoad(i)
          }
      }
    }
    startTZ (e = 0) {
      window.gameData.TZNum = e,
        window.gameData.TZNow = !0,
        window.monsterManage.StageTZ(),
        this.fight_stage.visible = !1,
        this.fight_sta.visible = !1,
        this.stage_te.visible = !1,
        this.stage_text.visible = !1,
        this.TZ_box.visible = !1,
        this.score_text.visible = !1,
        this.otherOpen = !1,
        this.bac_pop.visible = !1,
        this.start_box.visible = !1,
        this.fight_box.visible = !0,
        this.stage_box.visible = !0
    }
    maskInit () {
      var e = new Laya.Image("mainPage/Ui_Time2.png");
      e.pos(279, 548);
      var t = e.x + 105.5
        , a = e.y + 105.5
        , i = new Laya.Sprite;
      e.mask = i,
        i.graphics.clear(!0),
        i.graphics.drawPie(t, a, 105.5, 0, 10, "#ffffff"),
        this.addChild(e)
    }
    changeBody (e = null, t) {
      if ("click" == e.type)
        if (e.target instanceof Laya.Button) {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1);
          var a = this.goldNow
            , i = this.goldList1[t];
          if (6 == t || 7 == t) {
            var o = this
              , n = Laya.Handler.create(this, function () {
                var e = o.roleStatNow2.slice(0, t) + "1" + o.roleStatNow2.slice(t + 1, 9);
                o.roleStatNow2 = e,
                  window.gameData.roleStatNow2 = o.roleStatNow2,
                  localStorage.setItem("roleStatNow2", window.gameData.roleStatNow2),
                  window.gameData.carNumberNow2 = t,
                  localStorage.setItem("carNowTY2", t + ""),
                  o.shopRefresh()
              });
            return void d.getInstance().videoLoad(n)
          }
          if (i <= a) {
            var s = this.roleStatNow2.slice(0, t) + "1" + this.roleStatNow2.slice(t + 1, 9);
            this.roleStatNow2 = s,
              window.gameData.roleStatNow2 = this.roleStatNow2,
              localStorage.setItem("roleStatNow2", window.gameData.roleStatNow2),
              this.goldNow = a - i,
              window.gameData.goldNow = this.goldNow,
              localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
              window.gameData.carNumberNow2 = t,
              localStorage.setItem("carNowTY2", t + ""),
              this.refreshCon(),
              this.shopRefresh()
          }
        } else
          "1" == this.roleStatNow2[t] && this.carNumberNow2 != t && (window.gameData.carNumberNow2 = t,
            this.shopRefresh(),
            localStorage.setItem("carNowTY2", t + ""),
            this.refreshCon())
    }
    changeHead (e = null, t) {
      if ("click" == e.type)
        if (e.target instanceof Laya.Button && "1" != this.roleStatNow1[t]) {
          window.gameData.playSound("res/sound/Audio_button.mp3", 1);
          var a = this.goldNow
            , i = this.goldList0[t];
          if (6 == t || 7 == t) {
            var o = Laya.Handler.create(this, function () {
              var e = this.roleStatNow1.slice(0, t) + "1" + this.roleStatNow1.slice(t + 1, 9);
              this.roleStatNow1 = e,
                window.gameData.roleStatNow1 = this.roleStatNow1,
                localStorage.setItem("roleStatNow1", window.gameData.roleStatNow1),
                window.gameData.carNumberNow = t,
                localStorage.setItem("carNowTY", t + ""),
                window.eventDis.dispatchEvent("PlayerChange"),
                this.shopRefresh(),
                this.role_png.skin = "mainPage/Role" + (t + 1) + ".png",
                this.jump_box.visible = !0
            });
            return void d.getInstance().videoLoad(o)
          }
          if (i <= a) {
            var n = this.roleStatNow1.slice(0, t) + "1" + this.roleStatNow1.slice(t + 1, 9);
            this.roleStatNow1 = n,
              window.gameData.roleStatNow1 = this.roleStatNow1,
              localStorage.setItem("roleStatNow1", window.gameData.roleStatNow1),
              this.goldNow = a - i,
              window.gameData.goldNow = this.goldNow,
              localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
              window.gameData.carNumberNow = t,
              localStorage.setItem("carNowTY", t + ""),
              window.eventDis.dispatchEvent("PlayerChange"),
              this.shopRefresh(),
              this.role_png.skin = "mainPage/Role" + (t + 1) + ".png",
              this.jump_box.visible = !0
          }
        } else
          "1" == this.roleStatNow1[t] && window.gameData.carNumberNow != t && (window.gameData.carNumberNow = t,
            this.shopRefresh(),
            localStorage.setItem("carNowTY", t + ""),
            window.eventDis.dispatchEvent("PlayerChange"))
    }
    changeBody0 (e = null, t) {
      "click" == e.type && "1" == this.roleStatNow2[t] && this.carNumberNow2 != t && (window.gameData.carNumberNow2 = t,
        this.refreshCon())
    }
    changeHead0 (e = null, t) {
      "click" == e.type && (console.log(t),
        "1" == this.roleStatNow1[t] && window.gameData.carNumberNow != t && (window.gameData.carNumberNow = t,
          localStorage.setItem("carNowTY", t + ""),
          window.eventDis.dispatchEvent("PlayerChange")))
    }
    refreshCon () {
      this.carNumberNow2 != window.gameData.carNumberNow2 && (this.scene5 = window.EffectManager.ConduitList[window.gameData.carNumberNow2].clone(),
        window.NodeManage.scenes2.removeChild(this.sceneList[1]),
        this.sceneList[1] = this.scene5,
        window.NodeManage.scenes2.addChild(this.sceneList[1]))
    }
    sceneRefresh () {
      var e = Math.floor(4 * Math.random());
      switch (4 == e && (e = 3),
      e == this.sceneNum && 4 == (e += 1) && (e = 0),
      this.sceneNum = e,
      this.scene3 = window.EffectManager.GroundList[e].clone(),
      e) {
        case 0:
          window.NodeManage.scenes2.fogColor = new Laya.Vector3(.4, .5, .7),
            window.NodeManage.camera.clearColor = new Laya.Vector3(.4, .5, .7),
            window.NodeManage.light.color = new Laya.Vector3(.92, .88, 1),
            window.NodeManage.light.intensity = 1.3;
          break;
        case 1:
          window.NodeManage.scenes2.fogColor = new Laya.Vector3(.72, .67, .45),
            window.NodeManage.camera.clearColor = new Laya.Vector3(.72, .67, .45),
            window.NodeManage.light.color = new Laya.Vector3(1, .9, .86),
            window.NodeManage.light.intensity = 1.2;
          break;
        case 2:
          window.NodeManage.scenes2.fogColor = new Laya.Vector3(.55, .85, .9),
            window.NodeManage.camera.clearColor = new Laya.Vector3(.55, .85, .9),
            window.NodeManage.light.color = new Laya.Vector3(.85, 1, 1),
            window.NodeManage.light.intensity = 1.1;
          break;
        case 3:
          window.NodeManage.scenes2.fogColor = new Laya.Vector3(.33, .78, 1),
            window.NodeManage.camera.clearColor = new Laya.Vector3(.33, .78, 1),
            window.NodeManage.light.color = new Laya.Vector3(1, 1, .93),
            window.NodeManage.light.intensity = 1.1
      }
      window.NodeManage.scenes2.removeChild(this.sceneList[0]),
        this.sceneList[0].destroy(),
        this.sceneList[0] = this.scene3,
        window.NodeManage.scenes2.addChild(this.sceneList[0])
    }
    nmStart () {
      1 != window.gameData.giftStage && 8 == window.gameData.nmNow && (window.monsterManage.removeNM(),
        window.gameData.nmNow = 0,
        this.nm_text.text = "0",
        this.nmImg0.visible = !1,
        this.nmImg1.visible = !1,
        this.nmImg2.visible = !1,
        this.nmImg3.visible = !1,
        this.nmImg4.visible = !1,
        this.nmImg5.visible = !1,
        this.nmImg6.visible = !1,
        this.nmImg7.visible = !1,
        window.gameData.nmState = !0)
    }
    shopRefresh () {
      var e = this.roleStatNow1
        , t = this.roleStatNow2
        , a = 0
        , i = 0
        , o = []
        , n = [];
      if (this.goldList0.length && this.goldList0.length > 0)
        for (let t = 0; t < this.goldList0.length; t++) {
          var s = !0
            , r = "mainPage/Btn_Light.png"
            , l = s
            , h = "mainPage/Ui_PropFrame.png";
          t == window.gameData.carNumberNow && (h = "mainPage/Ui_PropFrame1.png");
          var g = "mainPage/Role" + (t + 1) + ".png";
          "1" == e[t] && (s = !1,
            a += 1),
            this.goldList0[t] > this.goldNow && (r = "mainPage/Btn_Gray.png"),
            l = s,
            6 != t && 7 != t || (r = "mainPage/Btn_Light_shop.png",
              l = !1);
          var d = {
            good_img: {
              skin: g
            },
            btn_img: {
              skin: r,
              visible: s
            },
            gold_logo: {
              visible: l
            },
            shop_Price: {
              text: this.goldList0[t],
              visible: l
            },
            shop_bac: {
              skin: h
            }
          };
          o.push(d)
        }
      if (this.goldList1.length && this.goldList1.length > 0)
        for (let e = 0; e < this.goldList1.length; e++) {
          var p = !0
            , m = "mainPage/Btn_Light.png"
            , c = (l = p,
              "mainPage/Road" + (e + 1) + ".png");
          h = "mainPage/Ui_PropFrame.png";
          e == window.gameData.carNumberNow2 && (h = "mainPage/Ui_PropFrame1.png"),
            "1" == t[e] && (p = !1,
              i += 1),
            this.goldList1[e] > this.goldNow && (m = "mainPage/Btn_Gray.png"),
            l = s,
            6 != e && 7 != e || (m = "mainPage/Btn_Light_shop.png",
              l = !1);
          var w = {
            good_img: {
              skin: c
            },
            btn_img: {
              skin: m,
              visible: p
            },
            gold_logo: {
              visible: l
            },
            shop_Price: {
              text: this.goldList1[e],
              visible: l
            },
            shop_bac: {
              skin: h
            }
          };
          n.push(w)
        }
      this.shop_List0.array = o,
        this.shop_List1.array = n,
        1 == this.starBox_L.visible ? (this.shop_text.text = a + "/9",
          this.line_Y.width = 34.5 * a) : (this.shop_text.text = i + "/9",
            this.line_Y.width = 34.5 * a)
    }
    goldChange () {
      this.goldNow = window.gameData.goldNow,
        this.gold_text.text = this.goldNow + "",
        this.fight_gold.text = this.goldNow + "",
        this.score_text.text = window.gameData.ScoreNow
    }
    initshadow () {
      var e = window.gameData.enemyNum
        , t = window.unitData.LevelData;
      window.gameData.TZNow && (e = window.gameData.TZNum + 1,
        t = window.unitData.LevelData2);
      window.unitData.FanData,
        window.unitData.PanData;
      var a = t[e - 1]
        , i = this.dealstr(a.pan);
      this.stage_point0.visible = !0,
        this.stage_point1.visible = !1,
        this.stage_point2.visible = !1,
        this.smallStage = 0,
        console.log(i.length + " panLen"),
        1 == i.length ? (this.stage_shadow.x = 140,
          this.stage_box.x = 295) : 2 == i.length ? (this.stage_shadow.x = -57,
            this.stage_box.x = 314) : 3 == i.length && (this.stage_shadow.x = -1,
              this.stage_box.x = 295)
    }
    dealstr (e) {
      var t = []
        , a = e.toString();
      return a.indexOf(",") > -1 ? t = a.split(",") : t.push(e),
        t
    }
    shadowRefresh () {
      this.smallStage += 1,
        1 == this.smallStage ? this.stage_point1.visible = !0 : 2 == this.smallStage && (this.stage_point2.visible = !0)
    }
    initNM () {
      var e = window.gameData.nmNow;
      switch (this.nm_text.text = window.gameData.nmNow + "",
      e) {
        case 8:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0,
            this.nmImg2.visible = !0,
            this.nmImg3.visible = !0,
            this.nmImg4.visible = !0,
            this.nmImg5.visible = !0,
            this.nmImg6.visible = !0,
            this.nmImg7.visible = !0;
          break;
        case 1:
          this.nmImg0.visible = !0;
          break;
        case 2:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0;
          break;
        case 3:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0,
            this.nmImg2.visible = !0;
          break;
        case 4:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0,
            this.nmImg2.visible = !0,
            this.nmImg3.visible = !0;
          break;
        case 5:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0,
            this.nmImg2.visible = !0,
            this.nmImg3.visible = !0,
            this.nmImg4.visible = !0;
          break;
        case 6:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0,
            this.nmImg2.visible = !0,
            this.nmImg3.visible = !0,
            this.nmImg4.visible = !0,
            this.nmImg5.visible = !0;
          break;
        case 7:
          this.nmImg0.visible = !0,
            this.nmImg1.visible = !0,
            this.nmImg2.visible = !0,
            this.nmImg3.visible = !0,
            this.nmImg4.visible = !0,
            this.nmImg5.visible = !0,
            this.nmImg6.visible = !0
      }
    }
    nmADD () {
      window.gameData.TZNow || (window.gameData.nmNow < 8 && (window.gameData.nmNow += 1),
        this.initNM(),
        0 == this.dangerNow && (this.dangerNow = !0,
          this.ani1.play(1, !1),
          Laya.timer.once(50, this, function () {
            this.dangerNow = !1
          })))
    }
    timeDeal (e) {
      var t = e % 1e3 / 10
        , a = t + "";
      t < 10 && (a = "0" + a);
      var i = Math.floor(e / 1e3 % 60)
        , o = i + "";
      i < 10 && (o = "0" + o);
      var n = Math.floor(i / 60 % 60)
        , s = n + "";
      return n < 10 && (s = "0" + s),
        s + ":" + o + ":" + a + "...."
    }
    GameLose () {
      this.cameraShock(),
        window.gameData.shootNow = !1,
        this.ADBox_img.visible = !0,
        this.BoxPress.value = 0,
        this.adBox_num = d.getInstance().randomNum(5, 6)
    }
    doGameLose () {
      this.otherOpen = !0,
        Laya.timer.once(200, this, function () {
          window.gameData.TZNow ? (this.otherOpen = !0,
            this.bac_pop.visible = !0,
            this.lose_box.visible = !0,
            this.fight_box.visible = !1,
            this.timeMove = !0,
            this.timeMoveStart(),
            this.lose_text.text = "5",
            this.time_text.text = "5") : (this.lose_text.text = "5",
              this.time_text.text = "5",
              this.MaxScoreL.text = window.gameData.MaxScore + "",
              this.NowScoreL.text = window.gameData.ScoreNow + "",
              this.StageTextL.text = window.gameData.enemyNum + "",
              this.timeMove = !0,
              this.timeMoveStart(),
              this.over_box.visible = !0,
              this.overBox2.visible = !1,
              this.overBox3.visible = !1,
              this.bac_pop.visible = !0,
              this.over_box1.visible = !0,
              this.ani11.play(1, !1),
              this.fight_box.visible = !1)
        })
    }
    cameraShock () {
      window.NodeManage.camera;
      Laya.timer.loop(1, this, this.shock)
    }
    shock () {
      var e = window.NodeManage.camera;
      if (4 == this.shockNum)
        e.transform.position = new Laya.Vector3(0, 1.3, 3.5),
          this.shockNum = 0,
          Laya.timer.clear(this, this.shock);
      else {
        var t = [[-.02, -.02], [.02, 0], [.02, 0], [0, .02]][this.shockNum];
        e.transform.translate(new Laya.Vector3(t[0], 0, t[1])),
          this.shockNum += 1
      }
    }
    timeMoveStart () {
      Laya.timer.clear(this, this.timeMoving),
        Laya.timer.loop(1e3, this, this.timeMoving)
    }
    timeMoving () {
      var e = Number(this.lose_text.text);
      1 != e && this.timeMove ? (this.lose_text.text = e - 1 + "",
        this.time_text.text = e - 1 + "") : (Laya.timer.clear(this, this.timeMoving),
          this.timeMove && (this.start_box.visible = !0,
            this.otherOpen = !1,
            this.over_box.visible = !1,
            this.stage_box.visible = !1,
            this.over_box1.visible = !1,
            this.bac_pop.visible = !1,
            this.stage_box.visible = !1,
            this.lose_box.visible = !1,
            this.bac_pop.visible = !1,
            this.fight_stage.visible = !0,
            this.fight_sta.visible = !0,
            this.stage_te.visible = !0,
            this.stage_text.visible = !0,
            this.score_text.visible = !0,
            this.stage_point1.visible = !1,
            this.stage_point2.visible = !1,
            window.gameData.TZNow = !1,
            window.gameData.shootNow = !1,
            window.gameData.gameOver = !1,
            window.eventDis.dispatchEvent("GameStart"),
            window.eventDis.gameStart(),
            window.gameData.nmNow = 0,
            window.gameData.ScoreNow = 0,
            this.timeMove = !1,
            this.nmImg0.visible = !1,
            this.nmImg1.visible = !1,
            this.nmImg2.visible = !1,
            this.nmImg3.visible = !1,
            this.nmImg4.visible = !1,
            this.nmImg5.visible = !1,
            this.nmImg6.visible = !1,
            this.nmImg7.visible = !1,
            this.smallStage = 0,
            this.initNM()))
    }
    GameOver () {
      this.doGameOver()
    }
    doGameOver () {
      this.over_box.visible = !0,
        window.gameData.giftStage ? Laya.timer.once(1200, this, function () {
          this.bac_pop.visible = !0,
            this.overGold.text = "360",
            this.overBox2Con.visible = !1,
            this.stageNext.visible = !0,
            this.goldAgain.visible = !0,
            this.overBox2.visible = !0,
            this.stageNext.visible = !1;
          var e = this;
          Laya.timer.once(2e3, this, function () {
            e.stageNext.visible = !0
          }),
            localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
            this.fight_box.visible = !1,
            this.stage_box.visible = !1
        }) : window.gameData.TZNow ? Laya.timer.once(1200, this, function () {
          var e = window.gameData.TZNum
            , t = this.goldListTZ[e];
          this.bac_pop.visible = !0,
            this.overGold.text = t + "",
            window.gameData.goldNow += t,
            this.TZStatNow = this.TZStatNow.slice(0, e) + "1" + this.TZStatNow.slice(e + 1, 30),
            window.gameData.TZStatNow = this.TZStatNow,
            this.initTZ(),
            this.overBox2Con.visible = !0,
            this.stageNext.visible = !1,
            this.goldAgain.visible = !1,
            this.overBox2.visible = !0,
            this.over_box1.visible = !1,
            this.overBox3.visible = !1,
            localStorage.setItem("TZStatNow", window.gameData.TZStatNow),
            localStorage.setItem("goldNowTY", window.gameData.goldNow + ""),
            this.fight_box.visible = !1,
            this.stage_box.visible = !1,
            this.fight_stage.visible = !0,
            this.fight_sta.visible = !0,
            this.stage_te.visible = !0,
            this.stage_text.visible = !0,
            this.score_text.visible = !0
        }) : Laya.timer.once(1200, this, function () {
          this.over_MaxScore.text = window.gameData.MaxScore + "",
            this.over_stage.text = window.gameData.enemyNum + "",
            this.playGold(),
            this.overBox3.visible = !0,
            this.bac_pop.visible = !0,
            this.fight_box.visible = !1,
            this.stage_box.visible = !1
        })
    }
    playGold () {
      if (window.gameData.enemyNum > 5) {
        switch (this.less6.visible = !0,
        this.less61.visible = !0,
        window.gameData.enemyNum % 5) {
          case 1:
            this.gold0.visible = !0,
              this.gold0.width = 0,
              this.gold_fly.x = 5,
              this.gold1.visible = !1,
              this.gold2.visible = !1,
              this.gold3.visible = !1;
            break;
          case 2:
            this.gold0.visible = !0,
              this.gold1.visible = !0,
              this.gold1.width = 0,
              this.gold_fly.x = 135,
              this.gold2.visible = !1,
              this.gold3.visible = !1;
            break;
          case 3:
            this.gold0.visible = !0,
              this.gold1.visible = !0,
              this.gold2.visible = !0,
              this.gold2.width = 0,
              this.gold_fly.x = 263,
              this.gold3.visible = !1;
            break;
          case 4:
            this.gold0.visible = !0,
              this.gold1.visible = !0,
              this.gold2.visible = !0,
              this.gold3.visible = !0,
              this.gold3.width = 0,
              this.gold_fly.x = 386
        }
        Laya.timer.frameLoop(1, this, this.goldMove)
      } else
        this.less6.visible = !1,
          this.less61.visible = !1,
          this.newGameStart()
    }
    goldMove () {
      switch (window.gameData.enemyNum % 5) {
        case 1:
          this.gold0.width += 5,
            this.gold_fly.x += 4,
            this.gold_fly.x > 87 && (this.gold_fly.x = 87),
            this.gold0.width > 109 && (this.gold0.width = 109,
              Laya.timer.clear(this, this.goldMove),
              this.newGameStart());
          break;
        case 2:
          this.gold1.width += 5,
            this.gold_fly.x += 4,
            this.gold_fly.x > 207 && (this.gold_fly.x = 207),
            this.gold1.width > 109 && (this.gold1.width = 109,
              Laya.timer.clear(this, this.goldMove),
              this.newGameStart());
          break;
        case 3:
          this.gold2.width += 5,
            this.gold_fly.x += 4,
            this.gold_fly.x > 324 && (this.gold_fly.x = 324),
            this.gold2.width > 109 && (this.gold2.width = 109,
              Laya.timer.clear(this, this.goldMove),
              this.newGameStart());
          break;
        case 4:
          this.gold3.width += 5,
            this.gold_fly.x += 4,
            this.gold_fly.x > 447 && (this.gold_fly.x = 447),
            this.gold3.width > 109 && (this.gold3.width = 109,
              Laya.timer.clear(this, this.goldMove),
              this.newGameStart())
      }
    }
    newGameStart () {
      Laya.timer.once(800, this, function () {
        this.smallStage = 0,
          this.sceneRefresh(),
          window.gameData.miniCar.transform.position = new Laya.Vector3(0, 0, 2.4),
          this.fight_box.visible = !0,
          this.stage_box.visible = !0,
          window.gameData.shootNow = !1,
          window.gameData.gameOver = !1,
          window.gameData.enemyNum += 1,
          this.initshadow(),
          this.stage_text.text = window.gameData.enemyNum + "",
          this.fight_stage.text = window.gameData.enemyNum + "",
          this.over_stage.text = window.gameData.enemyNum + "",
          this.StageTextL.text = window.gameData.enemyNum + "",
          localStorage.setItem("stageNowTY", window.gameData.enemyNum + ""),
          window.HttpManager.connect(window.HttpManager.getAddGoldHttpUrl(window.gameData.enemyNum), e => {
            e.ret
          }
          ),
          window.eventDis.dispatchEvent("GameStart"),
          window.eventDis.gameStart(),
          this.over_box.visible = !1,
          this.bac_pop.visible = !1,
          this.overBox3.visible = !1,
          this.overBox2.visible = !1,
          this.over_box1.visible = !1
      })
    }
    goldUp () {
      Laya.timer.loop(1, this, this.addGoldNum)
    }
    addGoldNum () {
      var e = Math.floor(this.goldMax / 30);
      0 == e && (e = 1),
        this.goldNum += e,
        this.goldNum > this.goldMax && (this.goldNum = this.goldMax,
          Laya.timer.clear(this, this.addGoldNum))
    }
    Onclose () { }
    onClosed () {
      this.destroy()
    }
    destroy () {
      Laya.Tween.clearAll(this),
        Laya.timer.clearAll(this),
        window.eventDis.delAllEvnt(this),
        this.removeChildren(),
        this.removeSelf()
    }
  }
  class m extends l.ui.LayaPlane.MainPageDialogUI {
    constructor() {
      super(),
        this.handler = new Laya.Handler(this, this.Onclose),
        this.init()
    }
    init () {
      console.log(0),
        this.testText.visible = !1,
        window.gameData.init(),
        window.gameData.soundHall = !1;
      var e = this
        , t = new Laya.BitmapFont;
      t.loadFont("res/font/Font.fnt", new Laya.Handler(e, () => {
        t.setSpaceWidth(10),
          Laya.Text.registerBitmapFont("level", t);
        var a = new Laya.BitmapFont;
        a.loadFont("res/font/Font1.fnt", new Laya.Handler(e, () => {
          t.setSpaceWidth(10),
            Laya.Text.registerBitmapFont("level_G", a);
          var i = new Laya.BitmapFont;
          i.loadFont("res/font/Font_Num.fnt", new Laya.Handler(e, () => {
            i.setSpaceWidth(10),
              Laya.Text.registerBitmapFont("level_W", i);
            var t = new Laya.BitmapFont;
            t.loadFont("res/font/Font_Num_1.fnt", new Laya.Handler(e, () => {
              t.setSpaceWidth(10),
                Laya.Text.registerBitmapFont("level_Z", t);
              var a = new Laya.BitmapFont;
              a.loadFont("res/font/Font_Num_2.fnt", new Laya.Handler(e, () => {
                a.setSpaceWidth(10),
                  Laya.Text.registerBitmapFont("level_Y", a)
              }
                , [a]))
            }
              , [t]))
          }
            , [i]))
        }
          , [a]))
      }
        , [t]));
      Laya.loader.load(["res/config/fan.json", "res/config/level.json", "res/config/pan.json", "res/atlas/mainPage.atlas"], Laya.Handler.create(this, this.onLoaded))
    }
    onLoaded () {
      if (window.qg) {
        var e = this;
        qg.login({
          pkgName: "com.zhuifeng.tysj.kyx.nearme.gamecenter",
          success: function (t) {
            var a = JSON.stringify(t);
            console.log(a),
              window.qg && qg.setLoadingProgress({
                progress: 70
              }),
              window.gameData.token = t.token,
              window.HttpManager.useUrl = "https://minigamerx.jiegames.com/doodle_oppo",
              e.loginTest()
          },
          fail: function () { },
          complete: function () { }
        })
      } else
        this.loginTest()
    }
    loginTest () {
      window.unitData.init(),
        Laya.timer.loop(100, this, this.loadconfig)
    }
    loadconfig () {
      if (window.EffectManager.fireOver || null == window.unitData.LevelData || null == window.unitData.FanData) {
        window.monsterManage.init(),
          window.NodeManage.mainDisplay.removeChild(this);
        var e = new p;
        e.zOrder = 2e3,
          window.NodeManage.uiDisplay.addChild(e),
          this.destroy()
      }
    }
    Onclose () { }
    onClosed () {
      this.destroy()
    }
  }
  class c extends Laya.Sprite {
    constructor() {
      super();
      var e = new Laya.Scene3D;
      this.scenes2 = e,
        this.scenes2.enableFog = !0,
        this.scenes2.fogColor = new Laya.Vector3(.39, .49, .53),
        this.scenes2.fogStart = 10,
        this.scenes2.fogRange = 30;
      var t = e.addChild(new Laya.Camera(0, .1, 1e3));
      t.transform.position = new Laya.Vector3(0, 1.3, 3.5),
        t.transform.rotate(new Laya.Vector3(-25, 0, 0), !0, !1),
        t.clearColor = new Laya.Vector4(.39, .49, .53, 1);
      var a = new Laya.DirectionLight
        , i = a.transform.worldMatrix;
      i.setForward(new Laya.Vector3(30, -170, -155)),
        a.transform.worldMatrix = i,
        e.ambientColor = new Laya.Vector3(.4, .4, .6),
        a.color = new Laya.Vector3(1, 1, 1),
        a.intensity = .82,
        this.light = a,
        this.scenes2.addChild(a),
        e.addChild(t),
        t.fieldOfView = 60,
        this.uiDisplay = new Laya.Sprite,
        this.mainDisplay = new Laya.Sprite,
        this.EntityDisplay = new Laya.Sprite,
        this.effectDisplay = new Laya.Sprite,
        this.planeDisplay = new Laya.Sprite,
        this.overDisplay = new Laya.Sprite,
        this.camera = t,
        this.addChild(this.mainDisplay),
        this.addChild(this.EntityDisplay),
        this.addChild(this.planeDisplay),
        this.addChild(this.scenes2),
        this.addChild(this.effectDisplay),
        this.addChild(this.uiDisplay),
        this.addChild(this.overDisplay)
    }
    static get Instance () {
      return null == c.instance && (c.instance = new c),
        c.instance
    }
    MonsterManager () { }
  }
  class w {
    constructor() {
      this._enemy = [],
        this.bitch = void 0,
        this.Ground = void 0,
        this.Conduit = void 0,
        this.CakeBlack = void 0,
        this.Confetti = void 0,
        this.CakeGray = void 0,
        this.AxisBlack = void 0,
        this.AxisGray = void 0,
        this.Gold = void 0,
        this.EffectMiss = void 0,
        this.BallList = [],
        this.CakeList = [],
        this.bitchList = [],
        this.ConduitList = [],
        this.GroundList = [],
        this.EffectList = [],
        this.isShocking = !1,
        this.fireOver = !1
    }
    EffectManager () { }
    init () {
      var e = this;
      Laya.Sprite3D.load("res/3D/Coin.lh", Laya.Handler.create(null, function (t) {
        e.Gold = t
      })),
        Laya.Sprite3D.load("res/3D/EffectMiss.lh", Laya.Handler.create(null, function (t) {
          e.EffectMiss = t
        })),
        Laya.Sprite3D.load("res/3D/Confetti.lh", Laya.Handler.create(null, function (t) {
          e.Confetti = t
        })),
        Laya.Sprite3D.load("res/3D/CakeBlack.lh", Laya.Handler.create(null, function (t) {
          e.CakeBlack = t
        })),
        Laya.Sprite3D.load("res/3D/CakeGray.lh", Laya.Handler.create(null, function (t) {
          e.CakeGray = t
        })),
        Laya.Sprite3D.load("res/3D/AxisBlack.lh", Laya.Handler.create(null, function (t) {
          e.AxisBlack = t
        })),
        Laya.Sprite3D.load("res/3D/AxisGray.lh", Laya.Handler.create(null, function (t) {
          e.AxisGray = t
        }));
      for (let i = 0; i < 15; i++) {
        e = this;
        var t = "res/3D/Ball" + (i + 1) + ".lh"
          , a = new Laya.Sprite3D;
        this.BallList.push(a),
          Laya.Sprite3D.load(t, Laya.Handler.create(null, function (t) {
            e.BallList[i] = t
          }))
      }
      for (let i = 0; i < 27; i++) {
        e = this,
          t = "res/3D/Cake" + i + ".lh",
          a = new Laya.Sprite3D;
        this.CakeList.push(a),
          Laya.Sprite3D.load(t, Laya.Handler.create(null, function (t) {
            e.CakeList[i] = t
          }))
      }
      for (let i = 0; i < 9; i++) {
        e = this,
          t = "res/3D/Role" + (i + 1) + ".lh",
          a = new Laya.Sprite3D;
        this.bitchList.push(a),
          Laya.Sprite3D.load(t, Laya.Handler.create(null, function (t) {
            e.bitchList[i] = t
          }))
      }
      for (let i = 0; i < 9; i++) {
        e = this,
          t = "res/3D/Conduit" + (i + 1) + ".lh",
          a = new Laya.Sprite3D;
        this.ConduitList.push(a),
          Laya.Sprite3D.load(t, Laya.Handler.create(null, function (t) {
            e.ConduitList[i] = t
          }))
      }
      for (let i = 0; i < 4; i++) {
        e = this,
          t = "res/3D/Scene" + (i + 1) + ".lh",
          a = new Laya.Sprite3D;
        this.GroundList.push(a),
          Laya.Sprite3D.load(t, Laya.Handler.create(null, function (t) {
            e.GroundList[i] = t
          }))
      }
      for (let i = 0; i < 15; i++) {
        e = this,
          t = "res/3D/HitEffect" + (i + 1) + ".lh",
          a = new Laya.Sprite3D;
        this.EffectList.push(a),
          Laya.Sprite3D.load(t, Laya.Handler.create(null, function (t) {
            e.EffectList[i] = t
          }))
      }
      Laya.timer.loop(100, this, this.checkState)
    }
    checkState () {
      var e = !0;
      for (let t = 0; t < this.CakeList.length; t++) {
        const a = this.CakeList[t];
        a && a.name && "New Sprite3D" == a.name && (e = !1)
      }
      for (let t = 0; t < this.BallList.length; t++) {
        const a = this.BallList[t];
        a && a.name && "New Sprite3D" == a.name && (e = !1)
      }
      for (let t = 0; t < this.bitchList.length; t++) {
        const a = this.bitchList[t];
        a && a.name && "New Sprite3D" == a.name && (e = !1)
      }
      for (let t = 0; t < this.ConduitList.length; t++) {
        const a = this.ConduitList[t];
        a && a.name && "New Sprite3D" == a.name && (e = !1)
      }
      for (let t = 0; t < this.GroundList.length; t++) {
        const a = this.GroundList[t];
        a && a.name && "New Sprite3D" == a.name && (e = !1)
      }
      for (let t = 0; t < this.EffectList.length; t++) {
        const a = this.EffectList[t];
        a && a.name && "New Sprite3D" == a.name && (e = !1)
      }
      null != this.EffectMiss && null != this.Confetti && null != this.Gold && null != this.CakeBlack && null != this.CakeGray && null != this.AxisBlack && null != this.AxisGray || (e = !1),
        e && (Laya.timer.clear(this, this.checkState),
          this.fireOver = !0)
    }
    createEffect (e = []) {
      var t = 0;
      e[0] && (t = e[0]);
      var a = 0;
      e[1] && (a = e[1]);
      var i = window.EffectManager.EffectList[a].clone();
      i.transform.translate(new Laya.Vector3(2 * Math.random() / 10 - .1, .4 + 2 * Math.random() / 10, t + .2)),
        window.NodeManage.scenes2.addChild(i),
        Laya.timer.once(500, this, function () {
          window.NodeManage.scenes2.removeChild(i),
            i.destroy()
        })
    }
    createEffect2 () {
      var e = window.EffectManager.Confetti.clone();
      e.transform.translate(new Laya.Vector3(0, .5, .2)),
        window.NodeManage.scenes2.addChild(e),
        Laya.timer.once(500, this, function () {
          window.NodeManage.scenes2.removeChild(e),
            e.destroy()
        })
    }
    createEffect3 () {
      var e = window.EffectManager.EffectMiss.clone();
      e.transform.translate(new Laya.Vector3(0, .5, .2)),
        window.NodeManage.scenes2.addChild(e),
        Laya.timer.once(500, this, function () {
          window.NodeManage.scenes2.removeChild(e),
            e.destroy()
        })
    }
  }
  w.Instance = new w;
  class y {
    constructor() {
      this.useUrl = "https://minigamerx.jiegames.com/doodle_oppo",
        this.logUrl = "http://openapi.jiegames.com/logger/logInfoUpload",
        this.normalVer = "1",
        this.token = "",
        this.userId = "",
        console.log("http init"),
        this.outUrl = null
    }
    DecodeMessage (e) { }
    onHttpRequestError (e) {
      console.log(e)
    }
    onHttpRequestProgress (e) { }
    connect (e, t) {
      this.callBack = t,
        this.hr = new Laya.HttpRequest,
        this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress),
        this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete),
        this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError),
        console.log("http Send:", e),
        this.hr.send(e, null, "get", "text")
    }
    connect3 (e, t) {
      this.callBack = t,
        this.hr3 = new Laya.HttpRequest,
        this.hr3.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress),
        this.hr3.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete),
        this.hr3.once(Laya.Event.ERROR, this, this.onHttpRequestError),
        console.log("http Send:", e),
        this.hr3.send(e, null, "get", "text")
    }
    connect2 (e, t, a) {
      this.callBack = a,
        this.hr2 = new Laya.HttpRequest,
        this.hr2.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress),
        this.hr2.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete),
        this.hr2.once(Laya.Event.ERROR, this, this.onHttpRequestError),
        console.log("http Send:", e),
        this.hr2.send(e, JSON.stringify(t), "post", "text", ["content-type", "application/json;charset=UTF-8"])
    }
    onHttpRequestComplete (e) {
      console.log("http rec:", this.hr.data);
      var t = JSON.parse(this.hr.data);
      t && this.callBack && this.callBack(t)
    }
    getGateWayHttpUrl () {
      if (window.qg) {
        var e = window.gameData.token;
        return this.useUrl + "/login.php?token=" + e + "&version=0"
      }
      e = Math.ceil(99 * Math.random()) + "";
      return this.useUrl + "/login.php?token=" + e + "&version=1"
    }
    getReducePowerHttpUrl () {
      var e = this.token;
      return this.useUrl + "/delAction.php?token=" + e + "&action=delpower&uid=" + this.userId
    }
    getPowerNowHttpUrl () {
      var e = this.token;
      return this.useUrl + "/queryAction.php?token=" + e + "&action=power&uid=" + this.userId
    }
    getUnlockHttpUrl (e, t, a) {
      var i = this.token
        , o = "";
      return null != t && (o = "&id=" + t),
        a && (o += "&level=" + a),
        this.useUrl + "/unlockAction.php?token=" + i + "&action=" + e + "&uid=" + this.userId + o
    }
    getUpdateHttpUrl (e, t, a) {
      var i = this.token;
      return this.useUrl + "/updateAction.php?token=" + i + "&action=" + e + "&uid=" + this.userId + "&id=" + t + "&level=" + a
    }
    getAddStageHttpUrl () {
      var e = this.token;
      return this.useUrl + "/updateAction.php?token=" + e + "&action=updateCheckPoint&uid=" + this.userId
    }
    getRankHttpUrl () {
      var e = this.token;
      return this.useUrl + "/queryAction.php?token=" + e + "&action=rank&uid=" + this.userId
    }
    getEventRankHttpUrl () {
      var e = this.token;
      return this.useUrl + "/queryAction.php?token=" + e + "&action=rank&uid=" + this.userId
    }
    getAddPowerHttpUrl (e) {
      var t = this.token;
      return this.useUrl + "/addAction.php?token=" + t + "&action=addpower&uid=" + this.userId + "&value=" + e
    }
    getAddGoldHttpUrl (e) {
      var t = this.token;
      return this.useUrl + "/updateAction.php?token=" + t + "&action=checkpoint&uid=" + this.userId + "&value=" + e
    }
    getAddGold2HttpUrl (e) {
      var t = this.token;
      return this.useUrl + "/addAction.php?token=" + t + "&action=addActItem&uid=" + this.userId + "&value=" + e
    }
    getUseEquioHttpUrl (e) {
      var t = this.token;
      return this.useUrl + "/useEquip.php?token=" + t + "&uid=" + this.userId + "&plane=" + e[0] + "&leftWing=" + e[1] + "&rightWing=" + e[2] + "&leftBoat=" + e[3] + "&rightBoat=" + e[4]
    }
    getAddGoldCountHttpUrl () {
      var e = this.token;
      return this.useUrl + "/updateAction.php?token=" + e + "&uid=" + this.userId + "&action=awardCount"
    }
    getDelCountHttpUrl (e) {
      var t = this.token;
      return this.useUrl + "/delAction.php?token=" + t + "&uid=" + this.userId + "&action=" + e
    }
    getLoggerHttpUrl () {
      return this.logUrl
    }
    getLoggerHttpUrl2 () {
      var e = this.token;
      return this.useUrl + "/stats.php?token=" + e + "&uid=" + this.userId + "&action=update"
    }
    sendLoggerHttpUrl (e, t) {
      if (window.qg) {
        var a = (new Date).valueOf()
          , i = [{
            appId: "plane",
            sdkId: "plane",
            pluginId: "plane",
            userId: this.userId,
            logInfo: {
              event: e,
              label: t
            },
            logType: "tracker_info_log",
            timestamp: a
          }];
        this.connect2(this.getLoggerHttpUrl(), i, e => { }
        )
      }
    }
    sendLoggerHttpUrl2 () {
      window.qg && this.connect3(this.getLoggerHttpUrl2(), e => { }
      )
    }
  }
  y.Instance = new y;
  new class {
    constructor() {
      window.qg && qg.setLoadingProgress({
        progress: 10
      }),
        window.Laya3D ? Laya3D.init(e.width, e.height) : Laya.init(e.width, e.height, Laya.WebGL),
        Laya.Physics && Laya.Physics.enable(),
        Laya.DebugPanel && Laya.DebugPanel.enable(),
        Laya.stage.scaleMode = e.scaleMode,
        Laya.stage.screenMode = e.screenMode,
        Laya.URL.exportSceneToJson = e.exportSceneToJson,
        (e.debug || "true" == Laya.Utils.getQueryString("debug")) && Laya.enableDebugPanel(),
        e.physicsDebug && Laya.PhysicsDebugDraw && Laya.PhysicsDebugDraw.enable(),
        Laya.alertGlobalError = !0,
        Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION)
    }
    onVersionLoaded () {
      Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded))
    }
    onConfigLoaded () {
      this.onLoaded()
    }
    onLoaded () {
      console.log("load");
      var e = t.Instance;
      window.unitData = e,
        window.gameData = a.Instance,
        window.gameData.init(),
        window.monsterManage = o.Instance,
        window.BulletManager = s.Instance,
        window.eventDis = r.Instance,
        window.NodeManage = c.Instance,
        window.EffectManager = w.Instance,
        window.HttpManager = y.Instance,
        w.Instance.init(),
        Laya.stage.addChild(window.NodeManage.mainDisplay),
        Laya.stage.addChild(window.NodeManage.EntityDisplay),
        Laya.stage.addChild(window.NodeManage.planeDisplay),
        Laya.stage.addChild(window.NodeManage.scenes2),
        Laya.stage.addChild(window.NodeManage.effectDisplay),
        Laya.stage.addChild(window.NodeManage.uiDisplay),
        Laya.stage.addChild(window.NodeManage.overDisplay),
        Laya.MouseManager.multiTouchEnabled = !1;
      var i = new m;
      Laya.stage.addChild(i)
    }
  }
}();
